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