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