for _ in range(int(input())): print("ABloibc e"[input()in["1 1 1 1","7 7 4 4"]::2])