import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int t = sc.nextInt(); for (int i = 0; i < t; i++) { int x = sc.nextInt(); if (x == 0 || x == 45 || x == 60 ) { System.out.println("Y"); } else { System.out.println("N"); } } sc.close(); } }