from math import gcd for _ in range(int(input())): n, a, b = map(int, input().split()) if gcd(a, b) > 1: print('NO') continue if a - 1 + b < n: print('YES') else: print('NO')