public class Main { public static void main(String[] args) { var sc = new java.util.Scanner(System.in); var ou = new java.io.PrintWriter(System.out); int t = sc.nextInt(); for(int $ = 0 ; $ < t ; $++){ long n = sc.nextLong(); long a = sc.nextLong(); long b = sc.nextLong(); ou.println(a + b <= n + 1 && g(a, b) == 1 ? "YES" : "NO"); } ou.flush(); } static long g(long a, long b) { return b == 0 ? a : g(b, a % b); } }