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