for _ in range(int(input())):
    h, w, d = map(int, input().split())
    if h > w:
        h, w = w, h
    print('SN'[h ** 2 + w % 2 <= d ** 2])