def uf_find(n,p): ufl = [] while p[n] != n: ufl.append(n) n = p[n] for i in ufl: p[i] = n return n def uf_union(a,b,p,rank): ap = uf_find(a,p) bp = uf_find(b,p) if ap == bp: return True else: if rank[ap] > rank[bp]: p[bp] = ap elif rank[ap] < rank[bp]: p[ap] = bp else: p[bp] = ap rank[ap] += 1 return False N = int(input()) p = [i for i in range(N)] rank = [1] * N for i in range(N-1): u,v = map(int,input().split()) uf_union(u,v,p,rank) num = 0 for i in range(N): if i == uf_find(i,p): num += 1 if num >= 2: print ("Alice") else: print ("Bob")