#include using namespace std; int main(){ int yuki; cin >> yuki; while(yuki--){ long long H, W, D; cin >> H >> W >> D; long long w = W * W; long long h = H * H; if(H % 2 == 0 && W % 2 == 0){ if(D >= H || D >= W) cout << 'N' << endl; else cout << 'S' << endl; } else if(H % 2 == 0){ if(D >= H || D * D >= 1 + w) cout << 'N' << endl; else cout << 'S' << endl; } else if(W % 2 == 0){ if(D >= W || D * D >= 1 + h) cout << 'N' << endl; else cout << 'S' << endl; } else{ if(D * D >= 1 + w || D * D >= 1 + h) cout << 'N' << endl; else cout << 'S' << endl; } } }