#include //using namespace std; #pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") #define rep(i, j, n) for(ll i = ll(j); i < ll(n); i++) #define REP(i, j, n) for(ll i = ll(j); i <= ll(n); i++) #define per(i, j, n) for(ll i = ll(j); ll(n) <= i; i--) #define ALL(a) (a).begin(),(a).end() #define revALL(a) (a).rbegin(),(a).rend() #define pb push_back #define mp std::make_pair #define mtp std::make_tuple #define ln "\n" using std::endl; using std::cin; using std::cout; #define ll long long using std::vector; using std::string; using std::upper_bound; using std::lower_bound; const ll MOD = int(1e9+7); const ll MAX = 1e6+10; const ll inf = (1ll << 60); //modpow ll modpow(ll X, ll Y, ll mod){ ll ret = 1; while(Y){ if(Y & 1){ ret *= X; ret %= mod; } X *= X; X %= mod; Y >>= 1; } return ret % mod; } //main int main(){ std::ios::sync_with_stdio(false); std::cin.tie(nullptr); std::cout.tie(nullptr); cout << std::fixed << std::setprecision(15); ll T; cin >> T; while(T--){ ll H,W,D; cin >> H >> W >> D; H = (H+1)/2; W = (W+1)/2; ll D2 = H*H+W*W; D *= D; string ans = "S"; if(D2 <= D) ans = "N"; cout << ans << ln; } }