from math import gcd import sys input = sys.stdin.buffer.readline sys.setrecursionlimit(10 ** 7) T = int(input()) for _ in range(T): N, A, B = map(int, input().split()) if gcd(A, B) != 1: print("NO") continue if A - 1 <= N - B: print("YES") else: print("NO")