#include #include using namespace atcoder; #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using mint = modint998244353; int main() { cin.tie(nullptr) -> sync_with_stdio(false); int n; cin >> n; vector deg(n); rep(i, n-1) { int a, b; cin >> a >> b; --a; --b; ++deg[a]; ++deg[b]; } mint ans; int cnt = 0; rep(v, n) { ans += mint(2).pow(deg[v]); if (deg[v] == n-1) ++cnt; } ans -= 2*cnt; cout << ans.val() << '\n'; return 0; }