#include <iostream>

int main()
{
    int K, A, B;
    std::cin >> K >> A >> B;

    if ((A - 1) / K == B / K) {
        std::cout << "NG" << std::endl;
    } else {
        std::cout << "OK" << std::endl;
    }

    return 0;
}
