#include #define rep(i,n) for(int i = 0; i < (n); i++) using namespace std; using ll = long long; using ld = long double; int main(){ cin.tie(0); ios::sync_with_stdio(0); int T; cin >> T; rep(_,T) { ll H,W,D; cin >> H >> W >> D; enum { SECOND, FIRST }; cout << ([H, W, D]() { if(H * H + (H % 2 == 1) * (H % 2 == 1) <= D * D) return FIRST; if(W * W + (W % 2 == 1) * (W % 2 == 1) <= D * D) return FIRST; return SECOND; } () ? "N" : "S") << endl; } }