def solve(h, w, d): if h < w: h, w = w, h if d < w: return 'S' elif d == w: if h % 2: return 'S' else: return 'N' else: return 'N' T = int(input()) for _ in range(T): h, w, d = map(int, input().split()) print(solve(h, w, d))