fn solve() -> char { let mut hwd = String::new(); std::io::stdin().read_line(&mut hwd).ok(); let hwd: Vec = hwd.trim().split_whitespace().map(|s| s.parse().unwrap()).collect(); let h = hwd[0]; let w = hwd[1]; let d = hwd[2]; if h * h + w * w <= d*d { 'N' } else if h.max(w) > 1 && h.min(w) <= d { 'N' } else { 'S' } } fn main() { let mut t = String::new(); std::io::stdin().read_line(&mut t).ok(); let t: usize = t.trim().parse().unwrap(); let mut result = Vec::with_capacity(t); for _ in 0..t { result.push(solve()); } for &v in result.iter() { println!("{}", v); } }