while True:
try:
T=int(input())
for i in range(1,T+1):
n=int(input())
walk=n/1.2
bike=50+n/3.0
if walk > bike:
print ("Bike")
if walk < bike:
print ("Walk")
if walk == bike:
print ("All")
except EOFError:
break