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