T = int(input()) for _ in range(T): H,W,D = map(int,input().split()) if D*D>=H*H+W*W: print("N") elif D>=max(H,W) and (H%2==0 or W%2==0): print("N") elif D>=min(H,W) and max(H,W)%2==0: print("N") else: print("S")