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:
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$$$.
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$$$.
Print a single integer: the number of distinct sets of complete stories that can be obtained, modulo $$$998244353$$$.
31 21 3
325
22 1
26
| Name |
|---|


