n = int(input()) dicts = {i:[] for i in range(n)} lists = [-1 for i in range(n)] for i in range(n - 1): te, mp = map(int, input().split()) dicts[te] += [mp] dicts[mp] += [te] for i in range(n): if dicts[i]: tmp = min(dicts[i]) if tmp < i: lists[i] = tmp # [print(i) for i in lists] ans = len(list(filter(lambda x: x==-1, lists))) if ans == 1: print('Bob') elif ans >= 3: print('Alice') else: a = len(list(filter(lambda x: len(x)==2, dicts.values()))) if a + 1 == len(dicts): print('Bob') else: print('Alice')