using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static long[] NList => ReadLine().Split().Select(long.Parse).ToArray(); public static void Main() { Solve(); } static void Solve() { var t = NN; var ans = new char[t]; for (var u = 0; u < t; ++u) { var c = NList; var (h, w, d) = (c[0], c[1], c[2]); ans[u] = 'S'; if (w <= d && h % 2 == 0) ans[u] = 'N'; if (w * w + 1 <= d * d && h % 2 == 1) ans[u] = 'N'; if (h <= d && w % 2 == 0) ans[u] = 'N'; if (h * h + 1 <= d * d && w % 2 == 1) ans[u] = 'N'; } WriteLine(string.Join("\n", ans)); } }