local ffi = require("ffi") local C = ffi.C ffi.cdef[[ long long atoll(const char*); ]] local function lltonumber(str) return C.atoll(str) end local function getgcd(x, y) while 0LL < x do x, y = y % x, x end return y end local q = io.read("*n", "*l") for i = 1, q do local n, a, b = io.read():match("(%d+) (%d+) (%d+)") n = lltonumber(n) a = lltonumber(a) b = lltonumber(b) if getgcd(a, b) ~= 1LL then print("NO") elseif n - 1 <= n - a + n - b then print("YES") else print("NO") end end