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