// competitive-verifier: PROBLEM https://yukicoder.me/problems/no/1801 #include #include void solve() { int h, w, d; std::cin >> h >> w >> d; auto [x, y] = std::minmax(h, w); std::cout << (x + (y % 2) <= d ? "N\n" : "S\n"); } int main(void) { int t; std::cin >> t; while (t--) solve(); return 0; }