t = gets.to_i ans = [] t.times do h,w,d = gets.split.map(&:to_i) f = false if h%2==0 f = true if w <= d else f = true if w*w + 1 <= d*d end if w%2==0 f = true if h <= d else f = true if h*h + 1 <= d*d end if f ans << "N" else ans << "S" end end puts ans