s=[] n=int(input()) s.append(n) i=1 while i<=n: m=int(input()) s.append(m) i+=1 i=1 while i<=s[0]: t1=s[i]/1.2 t2=s[i]/3+50 if t1>t2: print("Bike") elif t1<t2: print("Walk") elif t1==t2: print("All") i+=1