Tourism

Time limit: 0.75s Memory limit: 256MB Input: Output:

After having visited so many cities, tourist decided he will become a tour guide. He knows nn cities with mm undirected roads between them.

He plans to organize a circuit which starts in some city of his choice and for every subsequent city, the city has to be reachable from the current city using some of the roads. His circuit may contain the same city more than once, even in a row. For example for the city below

He may choose the circuit 14421 − 4 − 4 − 2 (to get from 11 to 44 he traverses two direct roads, stays twice at 44 and traverses two direct roads again to get to 22) or 56655 − 6 − 6 − 5. The circuit 151 − 5 is not a good one because there is no path between cities 11 and 55.

He wonders for circuits of different lengths how many distinct such circuits exist that he can choose from. Precisely for lengths from 11 to qq you must answer for each the number of possible circuits. Since the answer may be too large you are required to compute it modulo 109+710^9 + 7.

Input

The first line will contain three numbers, nn, mm and qq (1n1051 ≤ n ≤ 10^5), (1m21051 ≤ m ≤ 2 \cdot 10^5), (1q1051 ≤ q ≤ 10^5). The following mm lines contain the description of the graph.

For tests worth 2020 points it is guaranteed that (1n100)(1 ≤ n ≤ 100) and (1q100)(1 ≤ q ≤ 100).

Output

The output will contain on the first line qq integers, the number of circuits of length 1,2,...,q1, 2, ..., q.

Example

stdin

6 5 2
1 2
1 3
2 3
3 4
5 6

stdout

6 20

Log in or sign up to be able to send submissions!