use std::io::Read; fn run() { let mut s = String::new(); std::io::stdin().read_to_string(&mut s).unwrap(); let mut it = s.trim().split_whitespace(); it.next(); for x in it.map(|s| s.parse::().unwrap()) { if x == 0 || x == 30 { println!("Y"); } else { println!("N"); } } } fn main() { run(); }