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