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