#include <iostream>

using namespace std;
typedef long long ll;
int main(){
    int t; cin >> t;
    while(t){
        t--;
        ll h,w,d; cin >> h >> w >> d;
        ll l1,l2;
        if(h%2==0) l1 = w*w;
        else l1 = 1 + w*w;
        if(w%2==0) l2 = h*h;
        else l2 = 1 + h*h;
        if(min(l1,l2)<=d*d) cout << "N" << endl;
        else cout << "S" << endl;
    }
}