n=int(input()) list1=[] for i in range(n): s=int(input()) if 27+23+s/3.0 >s/1.2: list1.append("Walk") elif 27+23+s/3.0 <s/1.2: list1.append("Bike") else: list1.append("All") for i in list1: print(i)