#include #include #include #include #include #include #include #include #include #include #include #include #define debug_value(x) cerr << "line" << __LINE__ << ":<" << __func__ << ">:" << #x << "=" << x << endl; #define debug(x) cerr << "line" << __LINE__ << ":<" << __func__ << ">:" << x << endl; template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } using namespace std; typedef long long ll; bool solve(ll n, ll a, ll b){ if(a == 1) return true; if(gcd(a, b) != 1) return false; // if((n)/2 < b) return false; if((n+1)/2 >= b) return true; if((n)/2 < a) return false; if(n%2 == 0 && n == a*2) { throw ""; return false; } if(n-a < b) return false; return true; } int main(){ ios::sync_with_stdio(false); cin.tie(0); cout << setprecision(10) << fixed; int t; cin >> t; while(t--) { ll n, a, b; cin >> n >> a >> b; if(a > b) swap(a, b); if(solve(n, a, b)) cout << "YES" << endl; else cout << "NO" << endl; } }