We have $N$ bags.
Bag $i$ contains $L_i$ balls. The $j$\-th ball $(1\leq j\leq L_i)$ in Bag $i$ has a positive integer $a_{i,j}$ written on it.
We will pick out one ball from each bag.
How many ways are there to pick the balls so that the product of the numbers written on the picked balls is $X$?
Here, we distinguish all balls, even with the same numbers written on them.
## Constraints
* $N \geq 2$
* $L_i \geq 2$
* The product of the numbers of balls in the bags is at most $10^5$: $\displaystyle\prod_{i=1}^{N}L_i \leq 10^5$.
* $1 \leq a_{i,j} \leq 10^9$
* $1 \leq X \leq 10^{18}$
* All values in input are integers.
## Input
Input is given from Standard Input in the following format:
$N$ $X$
$L_1$ $a_{1,1}$ $a_{1,2}$ $\ldots$ $a_{1,L_1}$
$L_2$ $a_{2,1}$ $a_{2,2}$ $\ldots$ $a_{2,L_2}$
$\vdots$
$L_N$ $a_{N,1}$ $a_{N,2}$ $\ldots$ $a_{N,L_N}$
[samples]