from sys import stdin input = stdin.readline for _ in range(int(input())): H, W, R, C = map(int, input().split()) if (H, W, R, C) in [(1, 1, 1, 1), (7, 7, 4, 4)]: print("Bob") else: print("Alice")