#AGC005F. [AGC005F] Many Easy Problems

[AGC005F] Many Easy Problems

Score : 19001900 points

Problem Statement

One day, Takahashi was given the following problem from Aoki:

  • You are given a tree with NN vertices and an integer KK. The vertices are numbered 11 through NN. The edges are represented by pairs of integers (ai,bi)(a_i, b_i).

  • For a set SS of vertices in the tree, let f(S)f(S) be the minimum number of the vertices in a subtree of the given tree that contains all vertices in SS.

  • There are

    ways to choose KK vertices from the trees. For each of them, let SS be the set of the chosen vertices, and find the sum of f(S)f(S) over all

    ways.

  • Since the answer may be extremely large, print it modulo 924844033924844033(prime).

Since it was too easy for him, he decided to solve this problem for all K=1,2,...,NK = 1,2,...,N.

Constraints

  • 2N200,0002 \leq N \leq 200,000
  • 1ai,biN1 \leq a_i, b_i \leq N
  • The given graph is a tree.

Input

The input is given from Standard Input in the following format:

NN

a1a_1 b1b_1

a2a_2 b2b_2

::

aN1a_{N-1} bN1b_{N-1}

Output

Print NN lines. The ii-th line should contain the answer to the problem where K=iK=i, modulo 924844033924844033.

3
1 2
2 3
3
7
3

The diagram above illustrates the case where K=2K=2. The chosen vertices are colored pink, and the subtrees with the minimum number of vertices are enclosed by red lines.

4
1 2
1 3
1 4
4
15
13
4
7
1 2
2 3
2 4
4 5
4 6
6 7
7
67
150
179
122
45
7