from sys import stdin input = stdin.readline for _ in range(int(input())): N, M, B, W = map(int, input().split()) if min(N, M) == 1: print("Bob") elif W == 3 or W == 5 or W == 7: print("Bob") elif min(N, M) == 2: if W%2 == 0: print("Alice") else: print("Bob") else: print("Alice")