from scipy.sparse.csgraph import connected_components from scipy.sparse import csr_matrix from sys import stdin def main(): input = lambda: stdin.readline()[:-1] N = int(input()) UV = [tuple(map(int, input().split())) for _ in [0] * (N - 1)] l = list(zip(*UV)) d = [1] * len(UV) a = csr_matrix((d, (l[0], l[1])), (N, N)) x = connected_components(a, return_labels=0) if x == 1: print('Bob') elif x == 2: num = [0] * N for u, v in UV: num[u] += 1 num[v] += 1 for n in num: if n not in (0, 2): print('Alice') print('Bob') else: print('Alice') main()