m=int(input()) for i in range(m): n=int(input()) if n/1.2<n/3.0+50: print("Walk") elif n/1.2>n/3.0+50: print("Bike") else: print("All")