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