d = int(input()) for i in range(d): s=int(input()) t1=27+23+s/3 t2=s/1.2 if t1<t2: print("Bike") elif t1==t2: print("All") else: print("Walk")