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