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 bool[t]; for (var u = 0; u < t; ++u) { var c = NList; ans[u] = GCD(c[1], c[2]) == 1 && Math.Min(c[1], c[2]) <= c[0] / 2; } WriteLine(string.Join("\n", ans.Select(f => f ? "YES" : "NO"))); } static long GCD(long a, long b) { if (a < b) return GCD(b, a); if (a % b == 0) return b; return GCD(b, a % b); } }