stablegradients/pie-gem5-pairs huggingface dataset:
// Slower C++ solution:
#include<bits/stdc++.h>



using namespace std;

int main(void)

{

    short int K,A,B,count=0;

    cin>>K;

    cin>>A>>B;



    for(int i=A;i<=B;i++)

    {

        if(i%K==0)

        {

            count=1;

            break;

        }

    }





    if(count==1) cout<<"OK"<<endl;

    else cout<<"NG"<<endl;



}

// Faster C++ solution for the same problem (measured speedup: 5.294127257264721x):
#include <stdio.h>

int main(){

	int k,a,b;

	int c = 0;

	scanf("%d",&k);

	scanf("%d %d",&a,&b);

	for ( int i = a; i <= b; i++)

	{

		if ( i % k == 0)

		{

			c = 1;

		}

	}

	

	if (c == 1)

	{

		printf("OK\n");

	} else {

		printf("NG\n");

	}

	

	return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>

#include <ext/pb_ds/assoc_container.hpp>

using namespace __gnu_pbds;

using namespace std;



typedef long long ll;

typedef pair<int,int> ii;

typedef tree<ii,null_type,less<ii>,rb_tree_tag,tree_order_statistics_node_update> indexed_set;



int main() {

	cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);

	int k,a,b; cin>>k>>a>>b;

	for (int i=a; i<=b; i++) {

		if (i%k==0) {   

			cout<<"OK"<<endl;

			return 0;

		}

	}

	cout<<"NG"<<endl;

	return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.3647862248482685x):
#include <stdio.h>

int main(){

	int k,a,b;

	int c = 0;

	scanf("%d",&k);

	scanf("%d %d",&a,&b);

	for ( int i = a; i <= b; i++)

	{

		if ( i % k == 0)

		{

			c = 1;

		}

	}

	

	if (c == 1)

	{

		printf("OK\n");

	} else {

		printf("NG\n");

	}

	

	return 0;

}
// Slower C++ solution:
//

//	Created by shamim_nik

//



#include <bits/stdc++.h>

#include <ext/pb_ds/assoc_container.hpp>

using namespace __gnu_pbds;

using namespace std;



typedef long long ll;

typedef tree<int,null_type,less<int>,rb_tree_tag,

		tree_order_statistics_node_update> indexed_set;



#define br printf("\n")



int main () {

	ios::sync_with_stdio(0);

	cin.tie(0);



//	freopen("input.txt", "r", stdin);

//	freopen("output.txt", "w", stdout);



	int a, b, k;

	cin >> k >> a >> b;

	for(int i = a; i <= b; i++) {

		if(i % k == 0) {

			cout << "OK" << endl;

			return 0;

		}

	}

	cout << "NG" << endl;

	return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.364863877156814x):
#include <stdio.h>

int main(){

	int k,a,b;

	int c = 0;

	scanf("%d",&k);

	scanf("%d %d",&a,&b);

	for ( int i = a; i <= b; i++)

	{

		if ( i % k == 0)

		{

			c = 1;

		}

	}

	

	if (c == 1)

	{

		printf("OK\n");

	} else {

		printf("NG\n");

	}

	

	return 0;

}
// Slower C++ solution:
#include <iostream>



using namespace std;



int main() {

    int k,a,b,v;

    cin>>k>>a>>b;

    for(v=0;v<=b;v=v+1){

        if(v%k==0){

            if(v>=a && v<=b){

                cout<<"OK"<<"\n";

                return 0;

            }

        }

    }

    cout<<"NG"<<"\n";

    return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.283141090303432x):
#include <stdio.h>



int main () {

	

	int K, A, B;

	scanf("%d %d %d", &K, &A, &B);

	

	int x;

	

	for (A; A <= B; A++){

		if(A % K == 0){

		x++;}

	}

	if(x != 0 ){

		printf("OK ");

	} else{

		printf("NG ");

	}

	

	return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

typedef long long int  ll;

const ll mod = 1e9+7;

const ll mod1 = 998244353;

#define rep(i,a,b) for(ll i=a;i<b;i++)



void swap(ll &a , ll &b){

    ll t = a;

    a = b;

    b = t;

}



ll min(ll a, ll b){

    if(a<b)return a;

    return b;

}



ll max(ll a, ll b){

    if(a>b)return a;

    return b;

}



 ll pow(ll a, ll b) {

    a %= mod;

    ll ans = 1;

    while (b > 0) {

        if (b & 1)

            ans = ans * a % mod;

        a = a * a % mod;

        b /= 2;

    }

    return ans;

 }



 int n;

 int visited[102] = {0};

int x[102], y[102];



void dfs(int i)

{

    visited[i] = 1;

    for(int j=0; j<n; j++)

    {

        if(x[j] == x[i] || y[j]==y[i] )

        {

            if(visited[j] == 0)

            {

                dfs(j);

            }

        }

    }

}



int main(){



   ios_base :: sync_with_stdio(0);

   cin.tie(0);



   int a,b,k;

   cin>>k>>a>>b;



   int flag = 0;

   for(int i=a; i<=b; i++)

   {

        if(i%k==0)

        {

            flag = 1;

            cout<<"OK\n";

            break;

        }

   }



    if(flag == 0)

        cout<<"NG\n";



    return 0;



}


// Faster C++ solution for the same problem (measured speedup: 5.356386123721864x):
#include <stdio.h>



int main () {

	

	int K, A, B;

	scanf("%d %d %d", &K, &A, &B);

	

	int x;

	

	for (A; A <= B; A++){

		if(A % K == 0){

		x++;}

	}

	if(x != 0 ){

		printf("OK ");

	} else{

		printf("NG ");

	}

	

	return 0;

}
// Slower C++ solution:
#include <bits/stdc++.h>

using namespace std;



bool solve(int k, int a, int b){

	for (int i = a; i <=b; i++)

		if (i % k == 0)

			return true;

	return false;

}



int main(){

	int k, a, b;

	cin >> k;

	cin >> a >> b;

	cout << (solve(k,a,b) ? "OK" : "NG");

}


// Faster C++ solution for the same problem (measured speedup: 5.279976297156526x):
#include <stdio.h>



int main () {

	

	int K, A, B;

	scanf("%d %d %d", &K, &A, &B);

	

	int x;

	

	for (A; A <= B; A++){

		if(A % K == 0){

		x++;}

	}

	if(x != 0 ){

		printf("OK ");

	} else{

		printf("NG ");

	}

	

	return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

int main()

{

    int k,a,b,ans;

    cin>>k>>a>>b;

    ans = b/k - (a-1)/k;

    if(ans) cout<<"OK"<<endl;

    else cout<<"NG"<<endl;

}


// Faster C++ solution for the same problem (measured speedup: 5.29230986353475x):
#include <stdio.h>



int main () {

	

	int K, A, B;

	scanf("%d %d %d", &K, &A, &B);

	

	int x;

	

	for (A; A <= B; A++){

		if(A % K == 0){

		x++;}

	}

	if(x != 0 ){

		printf("OK ");

	} else{

		printf("NG ");

	}

	

	return 0;

}
// Slower C++ solution:
#include<iostream>

using namespace std;

int main()

{

    int K,A,B,i;

    cin>>K>>A>>B;

    for(i=A;i<=B;i++)

    {

        if(i%K==0)

        {

            cout<<"OK";

            return 0;

        }



    }

    cout<<"NG";

    return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.279917912398232x):
#include <stdio.h>



int main () {

	

	int K, A, B;

	scanf("%d %d %d", &K, &A, &B);

	

	int x;

	

	for (A; A <= B; A++){

		if(A % K == 0){

		x++;}

	}

	if(x != 0 ){

		printf("OK ");

	} else{

		printf("NG ");

	}

	

	return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>



using namespace std;

int main(void)

{

    short int K,A,B,count=0;

    cin>>K;

    cin>>A>>B;



    for(int i=A;i<=B;i++)

    {

        if(i%K==0)

        {

            count=1;

            break;

        }

    }





    if(count==1) cout<<"OK"<<endl;

    else cout<<"NG"<<endl;



}

// Faster C++ solution for the same problem (measured speedup: 5.293426885405772x):
#include <stdio.h>



int main () {

	

	int K, A, B;

	scanf("%d %d %d", &K, &A, &B);

	

	int x;

	

	for (A; A <= B; A++){

		if(A % K == 0){

		x++;}

	}

	if(x != 0 ){

		printf("OK ");

	} else{

		printf("NG ");

	}

	

	return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>

#include <ext/pb_ds/assoc_container.hpp>

using namespace __gnu_pbds;

using namespace std;



typedef long long ll;

typedef pair<int,int> ii;

typedef tree<ii,null_type,less<ii>,rb_tree_tag,tree_order_statistics_node_update> indexed_set;



int main() {

	cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);

	int k,a,b; cin>>k>>a>>b;

	for (int i=a; i<=b; i++) {

		if (i%k==0) {   

			cout<<"OK"<<endl;

			return 0;

		}

	}

	cout<<"NG"<<endl;

	return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.3640765053574855x):
#include <stdio.h>



int main () {

	

	int K, A, B;

	scanf("%d %d %d", &K, &A, &B);

	

	int x;

	

	for (A; A <= B; A++){

		if(A % K == 0){

		x++;}

	}

	if(x != 0 ){

		printf("OK ");

	} else{

		printf("NG ");

	}

	

	return 0;

}
// Slower C++ solution:
//

//	Created by shamim_nik

//



#include <bits/stdc++.h>

#include <ext/pb_ds/assoc_container.hpp>

using namespace __gnu_pbds;

using namespace std;



typedef long long ll;

typedef tree<int,null_type,less<int>,rb_tree_tag,

		tree_order_statistics_node_update> indexed_set;



#define br printf("\n")



int main () {

	ios::sync_with_stdio(0);

	cin.tie(0);



//	freopen("input.txt", "r", stdin);

//	freopen("output.txt", "w", stdout);



	int a, b, k;

	cin >> k >> a >> b;

	for(int i = a; i <= b; i++) {

		if(i % k == 0) {

			cout << "OK" << endl;

			return 0;

		}

	}

	cout << "NG" << endl;

	return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.364154147393235x):
#include <stdio.h>



int main () {

	

	int K, A, B;

	scanf("%d %d %d", &K, &A, &B);

	

	int x;

	

	for (A; A <= B; A++){

		if(A % K == 0){

		x++;}

	}

	if(x != 0 ){

		printf("OK ");

	} else{

		printf("NG ");

	}

	

	return 0;

}
// Slower C++ solution:
#include <iostream>



using namespace std;



int main() {

    int k,a,b,v;

    cin>>k>>a>>b;

    for(v=0;v<=b;v=v+1){

        if(v%k==0){

            if(v>=a && v<=b){

                cout<<"OK"<<"\n";

                return 0;

            }

        }

    }

    cout<<"NG"<<"\n";

    return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.298734810951462x):
#include <stdio.h>



int main(){



	int k, a, b;

	scanf("%d", &k);

	scanf("%d %d", &a, &b);

	int flag = 0;

	    

	for(int i=a; i<=b; i++){

		

		if ( i % k == 0){

		flag = 1;	

		break;

	

}

}

flag? printf("OK\n") : printf("NG\n");

	



	return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

typedef long long int  ll;

const ll mod = 1e9+7;

const ll mod1 = 998244353;

#define rep(i,a,b) for(ll i=a;i<b;i++)



void swap(ll &a , ll &b){

    ll t = a;

    a = b;

    b = t;

}



ll min(ll a, ll b){

    if(a<b)return a;

    return b;

}



ll max(ll a, ll b){

    if(a>b)return a;

    return b;

}



 ll pow(ll a, ll b) {

    a %= mod;

    ll ans = 1;

    while (b > 0) {

        if (b & 1)

            ans = ans * a % mod;

        a = a * a % mod;

        b /= 2;

    }

    return ans;

 }



 int n;

 int visited[102] = {0};

int x[102], y[102];



void dfs(int i)

{

    visited[i] = 1;

    for(int j=0; j<n; j++)

    {

        if(x[j] == x[i] || y[j]==y[i] )

        {

            if(visited[j] == 0)

            {

                dfs(j);

            }

        }

    }

}



int main(){



   ios_base :: sync_with_stdio(0);

   cin.tie(0);



   int a,b,k;

   cin>>k>>a>>b;



   int flag = 0;

   for(int i=a; i<=b; i++)

   {

        if(i%k==0)

        {

            flag = 1;

            cout<<"OK\n";

            break;

        }

   }



    if(flag == 0)

        cout<<"NG\n";



    return 0;



}


// Faster C++ solution for the same problem (measured speedup: 5.372196034430023x):
#include <stdio.h>



int main(){



	int k, a, b;

	scanf("%d", &k);

	scanf("%d %d", &a, &b);

	int flag = 0;

	    

	for(int i=a; i<=b; i++){

		

		if ( i % k == 0){

		flag = 1;	

		break;

	

}

}

flag? printf("OK\n") : printf("NG\n");

	



	return 0;

}
// Slower C++ solution:
#include <bits/stdc++.h>

using namespace std;



bool solve(int k, int a, int b){

	for (int i = a; i <=b; i++)

		if (i % k == 0)

			return true;

	return false;

}



int main(){

	int k, a, b;

	cin >> k;

	cin >> a >> b;

	cout << (solve(k,a,b) ? "OK" : "NG");

}


// Faster C++ solution for the same problem (measured speedup: 5.29556067660026x):
#include <stdio.h>



int main(){



	int k, a, b;

	scanf("%d", &k);

	scanf("%d %d", &a, &b);

	int flag = 0;

	    

	for(int i=a; i<=b; i++){

		

		if ( i % k == 0){

		flag = 1;	

		break;

	

}

}

flag? printf("OK\n") : printf("NG\n");

	



	return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

int main()

{

    int k,a,b,ans;

    cin>>k>>a>>b;

    ans = b/k - (a-1)/k;

    if(ans) cout<<"OK"<<endl;

    else cout<<"NG"<<endl;

}


// Faster C++ solution for the same problem (measured speedup: 5.307930646736289x):
#include <stdio.h>



int main(){



	int k, a, b;

	scanf("%d", &k);

	scanf("%d %d", &a, &b);

	int flag = 0;

	    

	for(int i=a; i<=b; i++){

		

		if ( i % k == 0){

		flag = 1;	

		break;

	

}

}

flag? printf("OK\n") : printf("NG\n");

	



	return 0;

}
// Slower C++ solution:
#include<iostream>

using namespace std;

int main()

{

    int K,A,B,i;

    cin>>K>>A>>B;

    for(i=A;i<=B;i++)

    {

        if(i%K==0)

        {

            cout<<"OK";

            return 0;

        }



    }

    cout<<"NG";

    return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.295502119513499x):
#include <stdio.h>



int main(){



	int k, a, b;

	scanf("%d", &k);

	scanf("%d %d", &a, &b);

	int flag = 0;

	    

	for(int i=a; i<=b; i++){

		

		if ( i % k == 0){

		flag = 1;	

		break;

	

}

}

flag? printf("OK\n") : printf("NG\n");

	



	return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>



using namespace std;

int main(void)

{

    short int K,A,B,count=0;

    cin>>K;

    cin>>A>>B;



    for(int i=A;i<=B;i++)

    {

        if(i%K==0)

        {

            count=1;

            break;

        }

    }





    if(count==1) cout<<"OK"<<endl;

    else cout<<"NG"<<endl;



}

// Faster C++ solution for the same problem (measured speedup: 5.309050965609363x):
#include <stdio.h>



int main(){



	int k, a, b;

	scanf("%d", &k);

	scanf("%d %d", &a, &b);

	int flag = 0;

	    

	for(int i=a; i<=b; i++){

		

		if ( i % k == 0){

		flag = 1;	

		break;

	

}

}

flag? printf("OK\n") : printf("NG\n");

	



	return 0;

}
// Slower C++ solution:
#include<bits/stdc++.h>

#include <ext/pb_ds/assoc_container.hpp>

using namespace __gnu_pbds;

using namespace std;



typedef long long ll;

typedef pair<int,int> ii;

typedef tree<ii,null_type,less<ii>,rb_tree_tag,tree_order_statistics_node_update> indexed_set;



int main() {

	cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);

	int k,a,b; cin>>k>>a>>b;

	for (int i=a; i<=b; i++) {

		if (i%k==0) {   

			cout<<"OK"<<endl;

			return 0;

		}

	}

	cout<<"NG"<<endl;

	return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.379909114998127x):
#include <stdio.h>



int main(){



	int k, a, b;

	scanf("%d", &k);

	scanf("%d %d", &a, &b);

	int flag = 0;

	    

	for(int i=a; i<=b; i++){

		

		if ( i % k == 0){

		flag = 1;	

		break;

	

}

}

flag? printf("OK\n") : printf("NG\n");

	



	return 0;

}
// Slower C++ solution:
//

//	Created by shamim_nik

//



#include <bits/stdc++.h>

#include <ext/pb_ds/assoc_container.hpp>

using namespace __gnu_pbds;

using namespace std;



typedef long long ll;

typedef tree<int,null_type,less<int>,rb_tree_tag,

		tree_order_statistics_node_update> indexed_set;



#define br printf("\n")



int main () {

	ios::sync_with_stdio(0);

	cin.tie(0);



//	freopen("input.txt", "r", stdin);

//	freopen("output.txt", "w", stdout);



	int a, b, k;

	cin >> k >> a >> b;

	for(int i = a; i <= b; i++) {

		if(i % k == 0) {

			cout << "OK" << endl;

			return 0;

		}

	}

	cout << "NG" << endl;

	return 0;

}

// Faster C++ solution for the same problem (measured speedup: 5.3799869862021295x):
#include <stdio.h>



int main(){



	int k, a, b;

	scanf("%d", &k);

	scanf("%d %d", &a, &b);

	int flag = 0;

	    

	for(int i=a; i<=b; i++){

		

		if ( i % k == 0){

		flag = 1;	

		break;

	

}

}

flag? printf("OK\n") : printf("NG\n");

	



	return 0;

}
// Slower C++ solution:
#pragma region 

#include<iostream>

#include<algorithm>

#include<vector>

#include<stack>

#include<queue>

#include<map>

#include<cstring>

#include<string>

typedef long long ll;

template <typename T>void read(T &x){x=0;char ch=getchar();ll f=1;while(!isdigit(ch)){if(ch=='-')f*=-1;ch=getchar();}while(isdigit(ch)){x=x*10+ch-48;ch=getchar();}x*=f;}

#define IO ios::sync_with_stdio(false), cin.tie(0), cout.tie(0)

using namespace std;

#pragma endregion



int main() {

    IO;

    int k, a, b;

    cin >> k >> a >> b;

    if (a%k==0||b%k==0) 

        cout << "OK\n";

    else

        cout << (a / k - b / k ? "OK\n" : "NG\n");

}

// Faster C++ solution for the same problem (measured speedup: 5.357029519068189x):
#include<stdio.h>



int main()

{

	int n, a, b;

	int flag = 0;

	scanf("%d", &n);

	

	scanf("%d %d", &a, &b);

	

	for(int i = a; i <= b; i++){

		if(i % n == 0){

			flag = 1;

		}

	}

	if(flag == 1){

		printf("OK\n");

	}else{

		printf("NG\n");

	}

}
// Slower C++ solution:
#include <bits/stdc++.h>

using namespace std;

int main(){

    int k,a,b;

    cin>>k>>a>>b;

    for(int i=1;k*i<=b;i++){

        if(k*i>=a&&k*i<=b){

            cout<<"OK";

            return 0;

        }

    }

    cout<<"NG";

}


// Faster C++ solution for the same problem (measured speedup: 5.280508964051629x):
#include<stdio.h>



int main()

{

	int n, a, b;

	int flag = 0;

	scanf("%d", &n);

	

	scanf("%d %d", &a, &b);

	

	for(int i = a; i <= b; i++){

		if(i % n == 0){

			flag = 1;

		}

	}

	if(flag == 1){

		printf("OK\n");

	}else{

		printf("NG\n");

	}

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

int main(){

	int k,a,b;

	cin>>k>>a>>b;

	if(a%k==0||b%k==0){

		cout<<"OK"<<endl;

	}else{

		int x=b-a;

		int y=a%k;

		if(x+y>=k)cout<<"OK"<<endl;

		else cout<<"NG"<<endl;

	}

} 

// Faster C++ solution for the same problem (measured speedup: 5.294505283015721x):
#include<stdio.h>



int main()

{

	int n, a, b;

	int flag = 0;

	scanf("%d", &n);

	

	scanf("%d %d", &a, &b);

	

	for(int i = a; i <= b; i++){

		if(i % n == 0){

			flag = 1;

		}

	}

	if(flag == 1){

		printf("OK\n");

	}else{

		printf("NG\n");

	}

}
// Slower C++ solution:
// /*

// power code taken from geeks for geeks

// */



#include <bits/stdc++.h>

#define MODD 1000000007LL

#define MAX_SIZE 100000000

#define MAX_N 200001

using namespace std;

typedef long long ll;

typedef long double ld;



ll max(ll a,ll b){return a>b?a:b;}

ll min(ll a,ll b){return a<b?a:b;}

double max(double a,double b){return a>b?a:b;}

double min(double a,double b){return a<b?a:b;}



ll modd(ll a){if(a<0LL) return a*-1LL;return a;}

double modd(double a){if(a<0.0) return a*-1.0;return a;}



ll modulo(ll a){return a % MODD; }



ll power(ll k, ll p){

    if (p == 0)

        return 1LL;

 

    ll P = power(k, p/2LL);

    P = (P * P) % MODD;

 

    if (p % 2 == 1)

        P = (P * k) % MODD;

 

    return P;

}





struct p_str{

    ll a,b,c;

};





void swap(ll& s1, ll &s2){

    ll temp=s1;

    s1=s2;

    s2=temp;

}

ll gcd(ll a, ll b){

    if(b==0){

        return a;

    }

    return gcd(b, a%b);

}



void solve(){

    ll k;

    cin>>k;

    ll a, b;

    cin>>a>>b;

    ll i=a;

    while(i<=b){

        if(i%k==0){

            cout<<"OK"<<endl;

            return;

        }

        i++;

    }

    cout<<"NG"<<endl;

}





int main(){





    ios_base::sync_with_stdio(false);

    cin.tie(NULL);

    

    ll t=1;



    // cin>>t;

    

    while(t--){

        solve();

    }

    return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.360143437941557x):
#include<stdio.h>



int main()

{

	int n, a, b;

	int flag = 0;

	scanf("%d", &n);

	

	scanf("%d %d", &a, &b);

	

	for(int i = a; i <= b; i++){

		if(i % n == 0){

			flag = 1;

		}

	}

	if(flag == 1){

		printf("OK\n");

	}else{

		printf("NG\n");

	}

}
// Slower C++ solution:
#include <bits/stdc++.h>

using namespace std;



#define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)

template <typename Arg1>

void __f(const char* name, Arg1&& arg1) {

  cerr << name << " : " << arg1 << "\n";

}

template <typename Arg1, typename... Args>

void __f(const char* na, Arg1&& arg1, Args&&... args) {

  const char* c = strchr(na + 1, ',');

  cerr.write(na, c - na) << " : " << arg1 << " , ";

  __f(c + 1, args...);

}

#define SZ(v) (int)v.size()

#define endl "\n"

#define ALL(v) v.begin(), v.end()

#define UNIQUE(v) sort(ALL(v)),v.erase(unique(ALL(v)),v.end())

typedef long long LL;

typedef pair <int,int> pii;

const double pi = acos(-1.0);

const double eps = 1e-8;

const int inf = 1e9;

const LL INF = 1e18;

const int mod = 1e9 + 7;

const int N = 1e5 + 5;



void solve() {

  int k, a, b;

  cin >> k >> a >> b;

  if (b/k - (a - 1)/k) cout << "OK" << endl;

  else cout << "NG" << endl;

}



int main() {

  ios_base::sync_with_stdio(0); cin.tie(0);

  #ifdef LOCAL

    freopen("input.txt", "r", stdin);

  #endif

  int t = 1;

  for (int tc = 1; tc <= t; tc++) solve();

  return 0;

}




// Faster C++ solution for the same problem (measured speedup: 5.351454747643184x):
#include<stdio.h>



int main()

{

	int n, a, b;

	int flag = 0;

	scanf("%d", &n);

	

	scanf("%d %d", &a, &b);

	

	for(int i = a; i <= b; i++){

		if(i % n == 0){

			flag = 1;

		}

	}

	if(flag == 1){

		printf("OK\n");

	}else{

		printf("NG\n");

	}

}
// Slower C++ solution:


#include<bits/stdc++.h>

using namespace std;

int main()

{

    int n,x,y,i=0,m=1;

    cin>>n>>x>>y;

    while(1)

    {

        i++;

        m=n*i;

        if(m>=x && m<=y)

            {

                cout<<"OK";

            return 0;

            }

        if(m>y)

            {

                cout<<"NG";

            return 0;

            }

    }



   return 0;

}


// Faster C++ solution for the same problem (measured speedup: 5.280519085795537x):
#include<stdio.h>



int main()

{

	int n, a, b;

	int flag = 0;

	scanf("%d", &n);

	

	scanf("%d %d", &a, &b);

	

	for(int i = a; i <= b; i++){

		if(i % n == 0){

			flag = 1;

		}

	}

	if(flag == 1){

		printf("OK\n");

	}else{

		printf("NG\n");

	}

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

int main()

{

    int a,b,k,c=0;

    cin>>k>>a>>b;

    for(int i=a;i<=b;i++)

    {

        if(i%k==0)

        {

            c=1;

            break;

        }

    }

    if(c==1)

        cout<<"OK\n";

    else

        cout<<"NG\n";

}


// Faster C++ solution for the same problem (measured speedup: 5.280528238132986x):
#include<stdio.h>



int main()

{

	int n, a, b;

	int flag = 0;

	scanf("%d", &n);

	

	scanf("%d %d", &a, &b);

	

	for(int i = a; i <= b; i++){

		if(i % n == 0){

			flag = 1;

		}

	}

	if(flag == 1){

		printf("OK\n");

	}else{

		printf("NG\n");

	}

}
// Slower C++ solution:
#include<bits/stdc++.h>

using namespace std;

int main()

{

  int a,b,k,x=0;

  cin>>k>>a>>b;

  for(int i=a;i<=b;i++)

  {

      if(i%k==0){

        x=1;

        break;

        }

  }

if(x==1){

cout<<"OK";

}

else{

cout<<"NG";

}

}

// Faster C++ solution for the same problem (measured speedup: 5.280616496888668x):
#include<stdio.h>



int main()

{

	int n, a, b;

	int flag = 0;

	scanf("%d", &n);

	

	scanf("%d %d", &a, &b);

	

	for(int i = a; i <= b; i++){

		if(i % n == 0){

			flag = 1;

		}

	}

	if(flag == 1){

		printf("OK\n");

	}else{

		printf("NG\n");

	}

}
// Slower C++ solution:
#pragma region 

#include<iostream>

#include<algorithm>

#include<vector>

#include<stack>

#include<queue>

#include<map>

#include<cstring>

#include<string>

typedef long long ll;

template <typename T>void read(T &x){x=0;char ch=getchar();ll f=1;while(!isdigit(ch)){if(ch=='-')f*=-1;ch=getchar();}while(isdigit(ch)){x=x*10+ch-48;ch=getchar();}x*=f;}

#define IO ios::sync_with_stdio(false), cin.tie(0), cout.tie(0)

using namespace std;

#pragma endregion



int main() {

    IO;

    int k, a, b;

    cin >> k >> a >> b;

    if (a%k==0||b%k==0) 

        cout << "OK\n";

    else

        cout << (a / k - b / k ? "OK\n" : "NG\n");

}

// Faster C++ solution for the same problem (measured speedup: 5.373571099579562x):
#include <stdio.h>



int main() {

    int abc;

    int a;

    int b;

    

    scanf("%d", &abc);

    scanf("%d %d", &a, &b);

    while(a <= b) {

        if(a%abc == 0) {

            printf("OK");

            return 0;

        }

        a++;

    }

    printf("NG");

    

    return 0;

}