You are given a tree that contains n vertices and q queries. Each query is determining the number of decompositions of the tree into paths and the path from v to u that is one of the paths in the decomposition modulo 998244353.
A tree decomposition in paths is valid if each vertex belongs to exactly one path. A path can be a single vertex. Two decompositions are different if there are two vertices v and u that belong to the same path in one of the decompositions but two distinct paths in the other.
Input format
Output format
For each query, print the answer of a specific query in a line.
Constraints
1≤n,q≤105
1≤vi,ui≤n
It is guaranteed that the edges form a tree.
In the first query, the tree else path from 3 to 3 is a path with 3 edges so it has 8 path decompositions.
And in the Second query, the tree else path from 2 to 5 is a path with 2 edges so it has 4 path decompositions.