Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

H. Cordel Stories
time limit per test
1 second
memory limit per test
1024 megabytes
input
standard input
output
standard output

Since childhood, the cordel poet Severino has kept tales heard at countryside markets: singing duels, enchanted creatures, and brave deeds passed down through generations. Now he is preparing his greatest booklet, an adventure where, in each chapter, the reader chooses how the story continues. To avoid losing any ending, Severino spread the pages of his outline on the floor and connected each choice with a piece of string.

Seen from above, the outline resembles a tree structure: there are $$$N$$$ chapters numbered from $$$1$$$ to $$$N$$$, with chapter $$$1$$$ being the beginning of every story. The outline follows these rules:

  • Each connection links a chapter to one of its immediate continuations;
  • For each connection, Severino must choose an uppercase letter between A and Z;
  • No chapter may have two continuations with the same letter;
  • Each chapter with no continuations ends a complete story, described by the sequence of letters on the path from chapter $$$1$$$ to it.

Severino also noticed that changing letters in the outline does not always change the booklet: two assignments of letters are considered equivalent when they produce exactly the same set of complete stories.

Severino wants to know how many distinct sets of complete stories can be obtained from this outline among all possible assignments of letters. Since the answer can be very large, he asks you to report it modulo $$$998244353$$$.

Input

The first line contains an integer $$$N$$$ ($$$2 \leq N \leq 10^{5}$$$), the number of chapters.

Each of the next $$$N-1$$$ lines contains two integers $$$U$$$ and $$$V$$$ ($$$1 \leq U, V \leq N$$$), indicating that there is a connection between chapters $$$U$$$ and $$$V$$$.

It is guaranteed that these connections form a tree, rooted at chapter $$$1$$$.

Output

Print a single integer: the number of distinct sets of complete stories that can be obtained, modulo $$$998244353$$$.

Examples
Input
3
1 2
1 3
Output
325
Input
2
2 1
Output
26
Note