#include using namespace std; #define rep(i,n) for(int i=0;i<(int)(n);i++) #define rrep(i,n) for(int i=(int)(n-1);i>=0;i--) #define ALL(v) v.begin(),v.end() #define RALL(v) v.rbegin(),v.rend() template using V=vector; template using VV=V>; using u128=__int128_t; using ll=long long; const int MOD=998244353; V G[200200]; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); int n; cin>>n; V P(n); P[0]=1; for(int i=1;i A(n); rep(i,n-1){ int a,b; cin>>a>>b; a--,b--; A[a]++,A[b]++; G[a].push_back(b); G[b].push_back(a); } ll ans=0; rep(i,n){ bool b=false; for(auto v:G[i]){ if(A[v]>1) b=true; } if(b) ans=(ans+P[A[i]])%MOD; else ans=(ans+P[A[i]]-2)%MOD; } cout<