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