x=str(raw_input())
print chr(ord(x)+32)
#2-6
tcase = int(raw_input().strip())
for case in range(tcase):
a= map(int, raw_input().strip().split())
s1=27+23+a[0]/3.0
s2=a[0]/1.2
if s1>s2:
print "Walk"
elif s1==s2:
print "All"
else:
print "Bike"