/* * Author: nskybytskyi * Time: 2022-01-07 16:20:00 */ #include using namespace std; int main() { cin.tie(0)->sync_with_stdio(0); int t; cin >> t; while (t--) { int64_t h, w, d; cin >> h >> w >> d; int64_t mn = numeric_limits::max(); if (w & 1) { mn = min(mn, h * h + 1); } else { mn = min(mn, h * h); } if (h & 1) { mn = min(mn, w * w + 1); } else { mn = min(mn, w * w); } if (mn <= d * d) { cout << "N\n"; } else { cout << "S\n"; } } return 0; }