n=int(input()) while n>=1: m=int(input()) t1=m/3+50 t2=m/1.2 if t1<t2: print ("Bike") elif t1>t2: print ("Walk") else: print ("All") n-=1