#include using namespace std; using ll = long long; using pint = pair; void solve(); int main() { int T; cin >> T; while(T--)solve(); } void solve() { ll N; cin >> N; ll x, y; cin >> x >> y; if(x > y)swap(x, y); if(x == 1 || y == 1) { cout << "YES" << endl; return; } if(x * 2 < N) { cout << "NO" << endl; return; } cout << (__gcd(x, y) == 1 ? "YES" : "NO") << endl; }