import sys input=lambda: sys.stdin.readline().rstrip() t=int(input()) for _ in range(t): if int(input())==45: print("Y") else: print("N")