T = int(input()) for _ in range(T): H,W,R,C = list(map(int,input().split())) print("Bob" if H == W == 1 else "Alice")