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