#include #define int long long using namespace std; signed main(){ int T; cin>>T; while(T--){ int N,A,B; cin>>N>>A>>B; puts(gcd(A,B)==1 && A+B<=N+1?"YES":"NO"); } }