There are $N$ roulette wheels. The $i$\-th $(1\leq i\leq N)$ wheel has $P _ i$ integers $S _ {i,1},S _ {i,2},\ldots,S _ {i,P _ i}$ written on it, and you can play it once by paying $C _ i$ yen. When you play the $i$\-th wheel once, an integer $j$ between $1$ and $P _ i$, inclusive, is chosen uniformly at random, and you earn $S _ {i,j}$ points.
The points you earn from the wheels are determined independently of past results.
Takahashi wants to earn at least $M$ points. Takahashi will act to minimize the amount of money he pays before he earns at least $M$ points. After each play, he can choose which wheel to play next based on the previous results.
Find the expected amount of money Takahashi will pay before he earns at least $M$ points.
More formal definitionHere is a more formal statement. For a strategy that Takahashi can adopt in choosing which wheel to play, the expected amount of money $E$ that he pays before he earns at least $M$ points with that strategy is defined as follows.
* For a natural number $X$, let $f(X)$ be the expected amount of money Takahashi pays before he earns at least $M$ points or plays the wheels $X$ times in total according to that strategy. Let $E=\displaystyle\lim _ {X\to+\infty}f(X)$.
Under the conditions of this problem, it can be proved that $\displaystyle\lim _ {X\to+\infty}f(X)$ is finite no matter what strategy Takahashi adopts. Find the value of $E$ when he adopts a strategy that minimizes $E$.
## Constraints
* $1\leq N\leq 100$
* $1\leq M\leq 100$
* $1\leq C _ i\leq 10 ^ 4\ (1\leq i\leq N)$
* $1\leq P _ i\leq 100\ (1\leq i\leq N)$
* $0\leq S _ {i,j}\leq M\ (1\leq i\leq N,1\leq j\leq P _ i)$
* $\displaystyle\sum _ {j=1}^{P _ i}S _ {i,j}\gt0\ (1\leq i\leq N)$
* All input values are integers.
## Input
The input is given from Standard Input in the following format:
$N$ $M$
$C _ 1$ $P _ 1$ $S _ {1,1}$ $S _ {1,2}$ $\ldots$ $S _ {1,P _ 1}$
$C _ 2$ $P _ 2$ $S _ {2,1}$ $S _ {2,2}$ $\ldots$ $S _ {2,P _ 2}$
$\vdots$
$C _ N$ $P _ N$ $S _ {N,1}$ $S _ {N,2}$ $\ldots$ $S _ {N,P _ N}$
[samples]