Q=int(input()) for _ in range(Q): a,b,c,d=map(int,input().split()) if a==b==c==d==1: print("Bob") else: print("Alice")