a=[]
n=int(input())
i=0
while i<n:
a.append(int(input()))
i+=1
for k in range(0,n):
try:
c=50+int(a[k])/3-int(a[k])/1.2
if c<0:
print("Bike")
elif c>0:
print("Walk")
else:
print("All")
except EOFError:
break