$2N$ players are split into two teams playing soccer. Every player wears their own team's uniform, and the shirt numbers run from $1$ to $N$ on each team.
Each player knows their own shooting accuracy $p$, the set $F$ of teammates they can pass to, and the set $E$ of opposing players who can steal the ball from them.
Once a player gets the ball, exactly one of the following three events happens during the next $1$ second:
When a player shoots, they score with probability equal to their accuracy $p$. After the shot, regardless of the outcome, player number $1$ of the opposing team receives the ball.
The three events occur with probability ratio $|F| : |E| : 1$, and previous events do not affect later ones. (Here $|S|$ denotes the size of set $S$.) For a pass or a steal, every player in the relevant set is equally likely to be chosen. The time during which no player holds the ball is negligibly short.
The match starts with player $1$ of the first team holding the ball. The match ends as soon as some team scores $R$ goals, or once $T$ seconds have elapsed since the start. For every possible final score, compute the probability that the match ends with that score.
The figure below illustrates one example input.

The first line contains $N$, $R$, and $T$. ($1 \le N \le 100$, $1 \le R \le 10$, $1 \le T \le 500$)
The next $N$ lines describe the players of the first team in order from number $1$, followed by $N$ lines describing the players of the second team in order from number $1$.
Each player's description begins with that player's accuracy $p$ ($0 \le p \le 1$), followed by the size $n_F$ of set $F$ and the size $n_E$ of set $E$ ($0 \le n_F \le N-1$, $0 \le n_E \le N$). Then come $n_F + n_E$ integers separated by spaces: the first $n_F$ are the shirt numbers of the teammates in $F$, and the remaining $n_E$ are the shirt numbers of the opposing players in $E$. A player's own number is never contained in $F$.
There are exactly $R \times (R+2)$ theoretically possible final scores. For each of them, print the probability that the match ends with that score as an irreducible fraction in the form numerator/denominator, one per line. Print 0/1 when the probability is $0$ and 1/1 when it is $1$.
Print the scores ordered by the first team's score ascending, breaking ties by the second team's score ascending.