import math

def solve():
    n, a, b = map(int, input().split())
    if a > b:
        a, b = b, a
    if math.gcd(a, b) != 1:
        print('NO')
        return
    if n - b < a - 1:
        print('NO')
        return
    print('YES')

t = int(input())
for i in range(t):
    solve()