class UnionFind: def __init__(self, n=1): self.parent = [i for i in range(n)] self.rank = [0] * n def find(self, x): if self.parent[x] == x: return x else: self.parent[x] = self.find(self.parent[x]) return self.parent[x] def union(self, x, y): x = self.find(x) y = self.find(y) if x != y: if self.rank[x] < self.rank[y]: x, y = y, x if self.rank[x] == self.rank[y]: self.rank[x] += 1 self.parent[y] = x def is_same(self, x, y): return self.find(x) == self.find(y) N = int(input()) uf = UnionFind(N) for _ in range(N-1): u, v = map(int, input().split()) uf.union(u, v) if N <= 3: print('Bob') quit() if len(set([uf.find(i) for i in range(N)])) == 1: print('Bob') else: print('Alice')