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