n=int(input()) while True: try: s = int(input()) if (s/1.2)<(s/3+50): print("Walk") elif(s/1.2)>(s/3+50): print("Bike") else: print("All") except EOFError: break