from math import gcd def solve(): n, a, b = map(int, input().split()) if gcd(a, b) != 1: print("NO") elif a + b <= n + 1: print("YES") else: print("NO") for _ in range(int(input())): solve()