n=int(input()) while n>0: s=int(input()) t1=s/1.2 t2=27+23+s/3.0 if t1<t2: print("Walk") elif t1>t2: print("Bike") else: print("All") n=n-1