N = int(input()) B = [0] * N for i in range(N-1): u, v = list(map(int, input().split())) B[u] += 1 B[v] += 1 no_b = 0 for i, bi in enumerate(B): if bi == 0: no_b += 1 if no_b == 0: print("Bob") else: for i in B: if i not in [0, 2]: ans = False if ans: print('Bob') else: print("Alice")