from sys import stdin input = stdin.readline for _ in range(int(input())): N, P, K = map(int, input().split()) if N <= 4: if K: print("No") else: print("Yes") elif K%P == 0 and K <= N//5*P: print("Yes") elif P-1 <= K and (K-(P-1))%P == 0 and K-(P-1) <= (N//5-1)*P: print("Yes") else: print("No")