#include<bits/stdc++.h>
using namespace std;
#define fifo ios::sync_with_stdio(false); cin.tie(0);cout.tie(0)
#define inf 2e18
#define PI 3.141592653589793238462643383279502884L
#define ll long long int
#define w(t) ll t; cin>>t; while(t--)
#define vin(v,n) for(int i=0;i<n;i++){cin>>x; v.pb(x); mpx[x]=true;}
#define forn(i,n) for(int i=0;i<n;i++)
#define pb push_back
//#define eb emplace_back
#define vll vector<long long int>
#define vi vector<int>
#define mp make_pair
#define max3(a,b,c) max(a,max(b,c))
#define min3(a,b,c) min(a,min(b,c))
#define mem(a,val) memset(a,val,sizeof(a))
#define Sort(vec) sort(vec.begin(),vec.end())
#define RSort(vec) sort(vec.rbegin(),vec.rend())
#define bs binary_search
#define lb lower_bound
#define ub upper_bound
#define bg begin()
#define en end()
#define mod 1000000007
ll Ceil(ll a,ll b){return a/b+(a%b!=0);}
ll fastModExp(ll a,ll b){ ll res=1; while(b>0) { if(b&1)res=(res*a)%mod; a=(a*a)%mod; b=b>>1; }return res;}

//: Binary Search,Greedy,dp,dfs and similar

/*
ll GC(ll a,ll b){ if(b==0)return a; else  return GC(b,a%b);}
ll inv_gc(ll a,ll b){return a/GC(a,b)*b;}


ll x,y,d;       //d is gcd x and y are coefficients
void exten_euclid(ll a,ll b)
{	ll temp;
	if(b==0)
	{
		d=a;
		x=1;
		y=0;
	}
	else
	{
		exten_euclid(b,a%b);
		temp=x;
		x=y;
		y=temp-(a/b)*y;
	}
return;
}



//     O(sqrtn)

vector<ll> factorize(ll n) {
    vector<ll> res;
    for (ll i = 2; i * i <= n; ++i) {
        while (n % i == 0) {
            res.push_back(i);
            n /= i;
        }
    }
    if (n != 1) {
        res.push_back(n);
    }
    return res;
}

*************FACTORIZE IN 0(LOG(N)) PROVIDED N IS INTEGER**************

int minPrime[100000];

void modified_sieve(int n){
for (int i = 2; i * i <= n; ++i) {
    if (minPrime[i] == 0) {         //If i is prime
        for (int j = i * i; j <= n; j += i) {
            if (minPrime[j] == 0) {
                minPrime[j] = i;
            }
        }
    }
}
for (int i = 2; i <= n; ++i) {
    if (minPrime[i] == 0) {
        minPrime[i] = i;
    }
}
}

vector<int> factorize(int n) {
    vector<int> res;
    while (n != 1) {
        res.push_back(minPrime[n]);
        n /= minPrime[n];
    }
    return res;
}

*************************************************
void sieve(int N) {
        bool isPrime[N+1];
        for(int i = 0; i <= N;++i) {
            isPrime[i] = true;
        }
        isPrime[0] = false;
        isPrime[1] = false;
        for(int i = 2; i * i <= N; ++i) {
             if(isPrime[i] == true) {
                 for(int j = i * i; j <= N ;j += i)
                     isPrime[j] = false;
            }
        }
    }


ll binomialCoeff(ll n, ll k)
{
     ll res = 1;
	if(n<k)
	return 0;

    // Since C(n, k) = C(n, n-k)
    if ( k > n - k )
        k = n - k;

    // Calculate value of
    // [n * (n-1) *---* (n-k+1)] / [k * (k-1) *----* 1]
    for (ll i = 0; i < k; ++i)
    {
        res *= (n - i);
        res /= (i + 1);
    }

    return res;
}


bool dfs_cycle(int root){
vis[root]=1;
bool temp=false;
for(int i=0;i<G[root].size();i++)
{
int v=G[root][i];
if(vis[v]==0)
temp|=dfs_cycle(v);
else if(vis[v]==1)
return true;
}
vis[root]=2;
return temp;
}

vector<vector<int> > G;
vector<int> vis;
bool is_cyclic(int n){
    vector<int> mark(2000,-1);
    queue<int> q;
    q.push(n);
    mark[n]=0;
    while(!q.empty()){
	int v=q.front();
	q.pop();
 	for(int i=0;G[v].size();i++){
	    int nbs=G[v][i];
	    if(mark[nbs]==-1){
		q.push(nbs);
		mark[nbs]=0;
	    }
	    else if(mark[nbs]==0) return true;
	}
 	mark[v]=1;
    }
    return false;
}


vector<vector<ll> >G;
vector<bool> vis;


void DFS_UTIL(ll u){
	vis[u]=true;
	
	for(auto it=G[u].begin();it!=G[u].end();it++){
		if(vis[*it]==false)
		{
		DFS_UTIL(*it);
		}
	}
}

*/
/*
map<int,int> par,rk;
void make_set(int n) // the rank and parent
{
    for(int i=1; i<=n; i++) { par[i] = i; rk[i] = 1; }
}

int find( int x)   // with PATH COMPRESSION
{
    if (x== par[x]) return x;
    int p = find(par[x]);
    par[x] = p;
    return p;
}

int uni(int x, int y) // with UNION BY rank
{
    int p1 = find(x);
    int p2 = find(y);
    if (p1 == p2 ) return 0;
    if ( rk[p1] > rk[p2] ) { par[p2] = p1; rk[p1] += rk[p2]; }
    else { par[p1] = p2; rk[p2] += rk[p1]; }
     return 1;
}


bool sortbysec(const pair<int,int> &a,const pair<int,int> &b) {return (a.second < b.second);}


void bfs(int o,int dp[],int n){
	queue<int> q;
	q.push(o);
	dp[o]=0;
	bool visited[n+1]={0};
	visited[o]=true;
	while(q.empty()==false){
		int a=q.front();
		q.pop();
		for (int u : G[a]) {
            if(visited[u]==false){
                visited[u]=true;
                q.push(u);

                dp[u]=dp[a]+1;
            }
        }
	}
}

*/
map<char,ll> mpx;
int main()
{
fifo;
int k,a,b;
cin>>k;
bool p=true;
cin>>a>>b;
for(int i=a;i<=b;i++){
	if(i%k==0){
		cout<<"OK"<<endl;
		p=false;
		break;
	}

}
if(p)
cout<<"NG"<<endl;
return 0;
}


Measured memory_bytes: 3652