/** * @FileName a.cpp * @Author kanpurin * @Created 2021.05.18 01:51:55 **/ #include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { int t;cin >> t; while(t--) { ll n,a,b;cin >> n >> a >> b; ll g = __gcd(a,b); if (g == 1 && a-1<=n-b) puts("YES"); else puts("NO"); } return 0; }