#define rep(i, n) for (int i = 0; i < (int)(n); i++) #define ALL(v) v.begin(), v.end() typedef long long ll; #include using namespace std; int main(){ int t; cin>>t; while(t--){ ll n,a,b; cin>>n>>a>>b; if(gcd(a,b)==1 && a<=n/2 && b<=n/a) cout<<"YES"<