n=int(input()) for i in range(n): a=int(input()) if a in [0,45]: print("Y") break print("N")