n=int(input()) i=0 while i<n: m=int(input()) mz=m/1.2 mb=m/3+50 if mz>mb : print("Bike") elif mz<mb: print("Walk") else: print("All") i+=1