import sys from math import gcd input = sys.stdin.readline sys.setrecursionlimit(10 ** 6) for _ in range(int(input())): N, A, B = map(int, input().split()) if A < B: A, B = B, A if gcd(A, B) == 1 and (N // B >= A - 1 or N // A >= B - 1): print("YES") else: print("NO")