You are give an graph with multiple edges and without loops. Each edge have one of 2 colors -- black or white.
For each i between 0 and n−1, inclusive, find number of spanning trees with exactly i white edges and n−1−i black edges.
As answers can be large, print them modulo 1,000,000,007.
Input Format:
First line contain single integer n -- number of vertices in a graph.
Then two tables n×n follows, separated by an empty line.
First table contains number of white edges between vertices, second black.
n
w11…w1n
⋮
wn1…wnn
b11…b1n
⋮
bn1…bnn
Output Format:
Output n space-separated numbers, i containing number of trees with i white and n−1−i black edges.
Constraints:
2⩽n⩽100.
0⩽wij,bij⩽1,000,000,006.
wii=bii=0.
wij=wji,bij=bji.
.