#include <bits/stdc++.h>
using namespace std;

int main(){
    int K, A, B;
    cin >> K >> A >> B;
    string ans;
    if(B - A >= K - 1){
        ans = "OK";
    }
    else{
        ans = "NG";
    }
    cout << ans << endl;
}
