#include <bits/stdc++.h>
using namespace std;

const int N = 5e5 + 5;
int n;

int main() {
    ios::sync_with_stdio(false), cin.tie(0);
    freopen("query.in", "r", stdin);
    freopen("query.out", "w", stdout);
    cin >> n;
    for (int i=1,u,v;i<n;++i)
        cin >> u >> v;
}

/*

Setreline
    ---- the polaris in my life.

*/