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