#include #include #include #include using namespace std; using ll = long long; using ull = unsigned long long; using mll = atcoder::static_modint<998244353>; #define rep(i,n) for(int i=0; i<(n); i++) int main(){ int N; cin >> N; vector> E(N); rep(i,N-1){ int u,v; cin >> u >> v; u--; v--; E[u].push_back(v); E[v].push_back(u); } vector I = {0}; vector P(N,-1); for(int i=0; i Z(N,1); for(int i=N-1; i>=1; i--) Z[P[i]] += Z[i]; mll ans = 0; for(int i=1; i