import sys input = sys.stdin.readline T=int(input()) for tests in range(T): H,W,D=map(int,input().split()) if H*H+W*W<=D*D: print("N") elif H%2==0 and W<=D: print("N") elif W%2==0 and H<=D: print("N") else: print("S")