#include using namespace std; int main() { int t; cin >> t; while (t--) { long long h,w,d; cin >> h >> w >> d; if(d == 1) { cout << "S" << endl; } else if(min(h,w) <= d) { cout << "N" << endl; } else { cout << "S" << endl; } } }