Q=int(input()) for _ in range(Q): N,M,H,W=map(int,input().split()) if N==3 and M==3 and W==7: print('Bob') continue if N==1 or M==1 or W==3 or W==5 or W==7: print('Bob') else: if min(N,M)==2 and W%2==1: print('Bob') else: print('Alice')