t=int(input()) for i in range(t): if i==0 or i==45: print("Y") else: print("N")