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