use std::io::*; fn main() { let mut s: String = String::new(); std::io::stdin().read_to_string(&mut s).ok(); let mut itr = s.trim().split_whitespace(); let t: usize = itr.next().unwrap().parse().unwrap(); let mut out = Vec::new(); for _ in 0..t { let x: usize = itr.next().unwrap().parse().unwrap(); if x == 0 || x == 45 { writeln!(out, "Y").ok(); } else { writeln!(out, "N").ok(); } } stdout().write_all(&out).unwrap(); }