T = input() for _ in range(T): x = int(input()) print('Y' if x == 45 else 'N')