import sys input = lambda: sys.stdin.readline().rstrip() INF = 10 ** 19 from collections import deque def solve(): h, w, d = map(int,input().split()) x = min(h * h + w * w, d * d) if x % 2: print('S') else: print('N') t = int(input()) for _ in range(t): solve()