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