T = int(input()) for _ in range(T): h,w,d = map(int,input().split()) if (w % 2 == 0 and d >= h) or (h % 2 == 0 and d >= w) or (d * d >= h * h + w * w): print('N') else: print('S')