#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) < d) { cout << "N" << endl; } else { cout << "S" << endl; } } }