#include using namespace std; using i64 = long long; bool check(i64 H, i64 W, i64 D) { if(H % 2 == 0) { return W <= D; } else { return W * W + 1 <= D * D; } } void solve() { i64 H, W, D; scanf("%lld %lld %lld", &H, &W, &D); bool f = 0; f |= check(H, W, D); f |= check(W, H, D); puts(f ? "N" : "S"); } int main() { int T; scanf("%d", &T); while(T--){ solve(); } }