import collections N = int(input()) tree = [[] for i in range(N)] for i in range(N - 1): x, y = map(int, input().split()) tree[x - 1].append(y - 1) tree[y - 1].append(x - 1) R = [N*2] * N L = [N*2] * N dq = collections.deque() R[0]=0 dq.append(0) while dq: cur = dq.popleft() for t in tree[cur]: if R[t]