Q=int(input()) for _ in range(Q): N,M,H,W=map(int,input().split()) if N==1 or M==1: print('Bob') else: print('Alice')