#yuki1801 t=int(input()) for i in range(t): h,w,d=map(int,input().split()) res=0 if pow(w,2)+h%2<=d**2 or pow(h,2)+w%2<=d**2: res='N' else: res='S' print(res)