while True: try: n=int(input()) for i in range(0,n): d=int(input()) if d/3+50<d/1.2: print('Bike') elif d/3+50>d/1.2: print('Walk') else: print('All') except EOFError: break