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