Kyoto University has a magnificent symbolic tree as its symbol tree.
Impressed by this symbolic tree, K-kun made a copy of it as a rooted tree with $$$N$$$ vertices.
The vertices of the tree are labeled $$$1,2,\dots,N$$$, the root of the tree is vertex $$$1$$$, and the $$$i$$$-th edge connects vertices $$$u_i$$$ and $$$v_i$$$.
Thinking that merely copying the tree would be uninteresting, K-kun writes a non-negative integer on each vertex of the tree so that the following conditions are satisfied.
Conditions
Find the remainder when the number of possible ways to write integers on the vertices of the tree is divided by $$$998244353$$$.
Two ways of writing integers on the vertices are considered different if and only if there exists some vertex such that the integer written on that vertex is different.
The first line contains integers $$$N,K$$$ separated by spaces. ( $$$2 \leq N \leq 3000, 1 \leq K \leq 10^9$$$ )
Each of the following $$$N-1$$$ lines contains integers $$$u_i,v_i$$$ separated by spaces, representing an edge of the tree.
Output the answer modulo $$$998244353$$$.
5 11 21 33 43 5
10
16 1615 1415 117 1014 24 614 165 31 512 115 72 913 105 149 68 1
623173536
For the first example, the following $$$10$$$ assignments of integers to vertices $$$1,2,3,4,5$$$ satisfy the conditions.
| Name |
|---|


