stablegradients/pie-gem5-pairs huggingface dataset:
// Slower C++ solution:


#include<bits/stdc++.h>



using namespace std;



int main(){

    int n,i,j=0,k,l,r;

    cin>>k>>l>>r;

    for(i=l;i<=r;i++){

        if(i%k==0){cout<<"OK";j=1;break;}

    }

    if(j==0){cout<<"NG";}



    return 0;

}


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

int main(){

	 int K,A,B,i;

	 int Count= 0;

	 scanf("%d",&K);

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

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

	 	if(i%K==0){

	 		Count++;

		 }

	 }	if(Count>0){

	 	     printf("OK\n");

	 }else{

	 	     printf("NG\n");

	 }

	 

	 

	 	

	 

	

	return 0;

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

#include<string>

#include<cstring>

using namespace std;

int main()

{

    int a,b,k;

    cin>>k;

    cin>>a>>b;

    int i;

    int j=0;

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

    {

    if(i%k==0)

    {

    j++;

    break;

    }

    }

    if(j)

    cout<<"OK"<<endl;

    else

    cout<<"NG"<<endl;

}

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

int main(){

	 int K,A,B,i;

	 int Count= 0;

	 scanf("%d",&K);

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

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

	 	if(i%K==0){

	 		Count++;

		 }

	 }	if(Count>0){

	 	     printf("OK\n");

	 }else{

	 	     printf("NG\n");

	 }

	 

	 

	 	

	 

	

	return 0;

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

using namespace std;

int main()

{

    int k,a,b,l=0;

    cin >> k;

    cin >> a>> b;

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

    {

        if(i%k==0)

        {

            l++;

            cout<< "OK"<<endl;

            break;

        }

        else

            continue;

    }

    if(l==0)

        cout<< "NG"<<endl;

}


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

int main(){

	 int K,A,B,i;

	 int Count= 0;

	 scanf("%d",&K);

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

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

	 	if(i%K==0){

	 		Count++;

		 }

	 }	if(Count>0){

	 	     printf("OK\n");

	 }else{

	 	     printf("NG\n");

	 }

	 

	 

	 	

	 

	

	return 0;

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

using namespace std;

int main()

{

    int k,a,b,j,l,i;

    cin>>k>>a>>b;

    j=0;

    for(i=1;i>0;i++)

    {

        l=k*i;

        if(l>=a&&l<=b)

        {

            j=1;

        }

        if(l>b)

            break;

    }

    if(j==1)

        cout<<"OK";

    else

        cout<<"NG";



}


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

int main(){

	 int K,A,B,i;

	 int Count= 0;

	 scanf("%d",&K);

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

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

	 	if(i%K==0){

	 		Count++;

		 }

	 }	if(Count>0){

	 	     printf("OK\n");

	 }else{

	 	     printf("NG\n");

	 }

	 

	 

	 	

	 

	

	return 0;

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

using namespace std;

int main()

{

    int div,a,b,count;

    while(cin>>div>>a>>b)

    {

        count=0;

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

        {

            if(i%div==0)

            {

                count++;

                 break;

            }

        }

        if(count!=0)

        {

            cout<<"OK"<<endl;

        }

        else

        {

            cout<<"NG"<<endl;

        }

    }

}


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

int main(){

	 int K,A,B,i;

	 int Count= 0;

	 scanf("%d",&K);

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

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

	 	if(i%K==0){

	 		Count++;

		 }

	 }	if(Count>0){

	 	     printf("OK\n");

	 }else{

	 	     printf("NG\n");

	 }

	 

	 

	 	

	 

	

	return 0;

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

#include <cmath>

using namespace std;

int main() {

    int k,a,b;

    cin>>k;

    cin>>a>>b;

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

    	cout<<"OK";

    }else if((((a/k)+1)*k)<b){

    	cout<<"OK";

    }else cout<<"NG";

    return 0;

}


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

int main(){

	 int K,A,B,i;

	 int Count= 0;

	 scanf("%d",&K);

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

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

	 	if(i%K==0){

	 		Count++;

		 }

	 }	if(Count>0){

	 	     printf("OK\n");

	 }else{

	 	     printf("NG\n");

	 }

	 

	 

	 	

	 

	

	return 0;

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

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

#define debug  freopen("in.txt","r",stdin),freopen("out.txt","w",stdout);

#define pb push_back

#define all(x) x.begin(),x.end()

using namespace std;

typedef long long ll;

typedef pair<int,int> pii;

const int maxn = 1e6+10;

const int maxM = 1e6+10;

const int inf = 0x3f3f3f3f;



int K,A,B;

int main(){

	// debug;

	ios;



	cin>>K>>A>>B;

	if(B/K - (A-1)/K > 0) cout<<"OK\n";

	else cout<<"NG\n";



	return 0;

}


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

int main(){

	 int K,A,B,i;

	 int Count= 0;

	 scanf("%d",&K);

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

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

	 	if(i%K==0){

	 		Count++;

		 }

	 }	if(Count>0){

	 	     printf("OK\n");

	 }else{

	 	     printf("NG\n");

	 }

	 

	 

	 	

	 

	

	return 0;

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

using namespace std;

int k,a,b,gg;

int main(){

	cin>>k>>a>>b;

	for (int i=1;i<=1000;i++){

		gg=k*i;

		if (a<=gg && gg<=b){

			cout<<"OK"<<endl;

			return 0;

		}

	}

	cout<<"NG"<<endl;

	return 0;

}

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



int main() {

	int K, A, B;

	scanf("%d", &K);

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

	

	int ans = 0;

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

		if(p % K == 0) {

			ans++;

		}

	} if(ans > 0) {

		printf("OK\n");

	} else {

		printf("NG\n");

	}



	

	return 0;

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

using namespace std;

int k,a,b;

int main(){

	cin>>k>>a>>b;

	if(a/k<b/k || (a%k==0 || b%k==0)) cout<<"OK"<<endl;

	else cout<<"NG"<<endl;

	

} 

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



int main() {

	int K, A, B;

	scanf("%d", &K);

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

	

	int ans = 0;

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

		if(p % K == 0) {

			ans++;

		}

	} if(ans > 0) {

		printf("OK\n");

	} else {

		printf("NG\n");

	}



	

	return 0;

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

#define eps 1e-3

#define pi acos(-1.0)

#define inf 0x3f

#define INF 0x3f3f3f3f

#define pb push_back

#define debug1 cout<<"&&";

#define debug2 cout<<"**";

#define ms(a, x) memset(a, x, sizeof(a))

#define for0(i, n) for(int i = 0; i < n; ++i)

#define for1(i, n) for(int i = 1; i <= n; ++i)

using namespace std;

typedef double db;

typedef long long ll;

typedef unsigned long long ull;

typedef pair<int, int> pii;

typedef pair<long long, int> pli;

typedef pair<long long, long long> pll;

const int mod = 1e9 + 7;

const int N = 1e5+10;

const int M = 1e6+10;

/*=================================================================================*/



int k, a, b, flag;



int main() {

   cin >> k >> a >> b;

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

      if(!(i%k)) flag = 1;

   }

   flag ? puts("OK") : puts("NG");

}

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



int main() {

	int K, A, B;

	scanf("%d", &K);

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

	

	int ans = 0;

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

		if(p % K == 0) {

			ans++;

		}

	} if(ans > 0) {

		printf("OK\n");

	} else {

		printf("NG\n");

	}



	

	return 0;

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

using namespace std;

long long k,a,b;

int main(){

	cin>>k>>a>>b;

	if(b>=a/k*k+k||a==a/k*k||b==a/k*k+k) cout<<"OK"<<endl;

	else cout<<"NG"<<endl;

	return 0;

} 

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



int main() {

	int K, A, B;

	scanf("%d", &K);

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

	

	int ans = 0;

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

		if(p % K == 0) {

			ans++;

		}

	} if(ans > 0) {

		printf("OK\n");

	} else {

		printf("NG\n");

	}



	

	return 0;

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

using namespace std;

int main()

{

    int k,a,b;

    cin>>k>>a>>b;

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

        if(i%k==0){cout<<"OK";return 0;}

    }cout<<"NG";

}


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



int main() {

	int K, A, B;

	scanf("%d", &K);

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

	

	int ans = 0;

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

		if(p % K == 0) {

			ans++;

		}

	} if(ans > 0) {

		printf("OK\n");

	} else {

		printf("NG\n");

	}



	

	return 0;

}
// Slower C++ solution:


#include<bits/stdc++.h>



using namespace std;



int main(){

    int n,i,j=0,k,l,r;

    cin>>k>>l>>r;

    for(i=l;i<=r;i++){

        if(i%k==0){cout<<"OK";j=1;break;}

    }

    if(j==0){cout<<"NG";}



    return 0;

}


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



int main() {

	int K, A, B;

	scanf("%d", &K);

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

	

	int ans = 0;

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

		if(p % K == 0) {

			ans++;

		}

	} if(ans > 0) {

		printf("OK\n");

	} else {

		printf("NG\n");

	}



	

	return 0;

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

#include<string>

#include<cstring>

using namespace std;

int main()

{

    int a,b,k;

    cin>>k;

    cin>>a>>b;

    int i;

    int j=0;

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

    {

    if(i%k==0)

    {

    j++;

    break;

    }

    }

    if(j)

    cout<<"OK"<<endl;

    else

    cout<<"NG"<<endl;

}

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



int main() {

	int K, A, B;

	scanf("%d", &K);

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

	

	int ans = 0;

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

		if(p % K == 0) {

			ans++;

		}

	} if(ans > 0) {

		printf("OK\n");

	} else {

		printf("NG\n");

	}



	

	return 0;

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

using namespace std;

int main()

{

    int k,a,b,l=0;

    cin >> k;

    cin >> a>> b;

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

    {

        if(i%k==0)

        {

            l++;

            cout<< "OK"<<endl;

            break;

        }

        else

            continue;

    }

    if(l==0)

        cout<< "NG"<<endl;

}


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



int main() {

	int K, A, B;

	scanf("%d", &K);

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

	

	int ans = 0;

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

		if(p % K == 0) {

			ans++;

		}

	} if(ans > 0) {

		printf("OK\n");

	} else {

		printf("NG\n");

	}



	

	return 0;

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

using namespace std;

int main()

{

    int k,a,b,j,l,i;

    cin>>k>>a>>b;

    j=0;

    for(i=1;i>0;i++)

    {

        l=k*i;

        if(l>=a&&l<=b)

        {

            j=1;

        }

        if(l>b)

            break;

    }

    if(j==1)

        cout<<"OK";

    else

        cout<<"NG";



}


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



int main() {

	int K, A, B;

	scanf("%d", &K);

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

	

	int ans = 0;

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

		if(p % K == 0) {

			ans++;

		}

	} if(ans > 0) {

		printf("OK\n");

	} else {

		printf("NG\n");

	}



	

	return 0;

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

using namespace std;

int main()

{

    int div,a,b,count;

    while(cin>>div>>a>>b)

    {

        count=0;

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

        {

            if(i%div==0)

            {

                count++;

                 break;

            }

        }

        if(count!=0)

        {

            cout<<"OK"<<endl;

        }

        else

        {

            cout<<"NG"<<endl;

        }

    }

}


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



int main() {

	int K, A, B;

	scanf("%d", &K);

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

	

	int ans = 0;

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

		if(p % K == 0) {

			ans++;

		}

	} if(ans > 0) {

		printf("OK\n");

	} else {

		printf("NG\n");

	}



	

	return 0;

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

#include <cmath>

using namespace std;

int main() {

    int k,a,b;

    cin>>k;

    cin>>a>>b;

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

    	cout<<"OK";

    }else if((((a/k)+1)*k)<b){

    	cout<<"OK";

    }else cout<<"NG";

    return 0;

}


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



int main() {

	int K, A, B;

	scanf("%d", &K);

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

	

	int ans = 0;

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

		if(p % K == 0) {

			ans++;

		}

	} if(ans > 0) {

		printf("OK\n");

	} else {

		printf("NG\n");

	}



	

	return 0;

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

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

#define debug  freopen("in.txt","r",stdin),freopen("out.txt","w",stdout);

#define pb push_back

#define all(x) x.begin(),x.end()

using namespace std;

typedef long long ll;

typedef pair<int,int> pii;

const int maxn = 1e6+10;

const int maxM = 1e6+10;

const int inf = 0x3f3f3f3f;



int K,A,B;

int main(){

	// debug;

	ios;



	cin>>K>>A>>B;

	if(B/K - (A-1)/K > 0) cout<<"OK\n";

	else cout<<"NG\n";



	return 0;

}


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



int main() {

	int K, A, B;

	scanf("%d", &K);

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

	

	int ans = 0;

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

		if(p % K == 0) {

			ans++;

		}

	} if(ans > 0) {

		printf("OK\n");

	} else {

		printf("NG\n");

	}



	

	return 0;

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

using namespace std;

int k,a,b,gg;

int main(){

	cin>>k>>a>>b;

	for (int i=1;i<=1000;i++){

		gg=k*i;

		if (a<=gg && gg<=b){

			cout<<"OK"<<endl;

			return 0;

		}

	}

	cout<<"NG"<<endl;

	return 0;

}

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

int main ()

{

	int K, A, B;

	scanf ("%d", &K);

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

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

	{

	 if (i % K == 0){

	 	printf ("OK\n");

	 	return 0;

		}

	}

printf ("NG");

return 0;

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

using namespace std;

int k,a,b;

int main(){

	cin>>k>>a>>b;

	if(a/k<b/k || (a%k==0 || b%k==0)) cout<<"OK"<<endl;

	else cout<<"NG"<<endl;

	

} 

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

int main ()

{

	int K, A, B;

	scanf ("%d", &K);

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

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

	{

	 if (i % K == 0){

	 	printf ("OK\n");

	 	return 0;

		}

	}

printf ("NG");

return 0;

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

#define eps 1e-3

#define pi acos(-1.0)

#define inf 0x3f

#define INF 0x3f3f3f3f

#define pb push_back

#define debug1 cout<<"&&";

#define debug2 cout<<"**";

#define ms(a, x) memset(a, x, sizeof(a))

#define for0(i, n) for(int i = 0; i < n; ++i)

#define for1(i, n) for(int i = 1; i <= n; ++i)

using namespace std;

typedef double db;

typedef long long ll;

typedef unsigned long long ull;

typedef pair<int, int> pii;

typedef pair<long long, int> pli;

typedef pair<long long, long long> pll;

const int mod = 1e9 + 7;

const int N = 1e5+10;

const int M = 1e6+10;

/*=================================================================================*/



int k, a, b, flag;



int main() {

   cin >> k >> a >> b;

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

      if(!(i%k)) flag = 1;

   }

   flag ? puts("OK") : puts("NG");

}

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

int main ()

{

	int K, A, B;

	scanf ("%d", &K);

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

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

	{

	 if (i % K == 0){

	 	printf ("OK\n");

	 	return 0;

		}

	}

printf ("NG");

return 0;

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

using namespace std;

long long k,a,b;

int main(){

	cin>>k>>a>>b;

	if(b>=a/k*k+k||a==a/k*k||b==a/k*k+k) cout<<"OK"<<endl;

	else cout<<"NG"<<endl;

	return 0;

} 

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

int main ()

{

	int K, A, B;

	scanf ("%d", &K);

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

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

	{

	 if (i % K == 0){

	 	printf ("OK\n");

	 	return 0;

		}

	}

printf ("NG");

return 0;

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

using namespace std;

int main()

{

    int k,a,b;

    cin>>k>>a>>b;

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

        if(i%k==0){cout<<"OK";return 0;}

    }cout<<"NG";

}


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

int main ()

{

	int K, A, B;

	scanf ("%d", &K);

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

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

	{

	 if (i % K == 0){

	 	printf ("OK\n");

	 	return 0;

		}

	}

printf ("NG");

return 0;

}
// Slower C++ solution:


#include<bits/stdc++.h>



using namespace std;



int main(){

    int n,i,j=0,k,l,r;

    cin>>k>>l>>r;

    for(i=l;i<=r;i++){

        if(i%k==0){cout<<"OK";j=1;break;}

    }

    if(j==0){cout<<"NG";}



    return 0;

}


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

int main ()

{

	int K, A, B;

	scanf ("%d", &K);

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

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

	{

	 if (i % K == 0){

	 	printf ("OK\n");

	 	return 0;

		}

	}

printf ("NG");

return 0;

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

#include<string>

#include<cstring>

using namespace std;

int main()

{

    int a,b,k;

    cin>>k;

    cin>>a>>b;

    int i;

    int j=0;

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

    {

    if(i%k==0)

    {

    j++;

    break;

    }

    }

    if(j)

    cout<<"OK"<<endl;

    else

    cout<<"NG"<<endl;

}

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

int main ()

{

	int K, A, B;

	scanf ("%d", &K);

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

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

	{

	 if (i % K == 0){

	 	printf ("OK\n");

	 	return 0;

		}

	}

printf ("NG");

return 0;

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

using namespace std;

int main()

{

    int k,a,b,l=0;

    cin >> k;

    cin >> a>> b;

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

    {

        if(i%k==0)

        {

            l++;

            cout<< "OK"<<endl;

            break;

        }

        else

            continue;

    }

    if(l==0)

        cout<< "NG"<<endl;

}


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

int main ()

{

	int K, A, B;

	scanf ("%d", &K);

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

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

	{

	 if (i % K == 0){

	 	printf ("OK\n");

	 	return 0;

		}

	}

printf ("NG");

return 0;

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

using namespace std;

int main()

{

    int k,a,b,j,l,i;

    cin>>k>>a>>b;

    j=0;

    for(i=1;i>0;i++)

    {

        l=k*i;

        if(l>=a&&l<=b)

        {

            j=1;

        }

        if(l>b)

            break;

    }

    if(j==1)

        cout<<"OK";

    else

        cout<<"NG";



}


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

int main ()

{

	int K, A, B;

	scanf ("%d", &K);

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

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

	{

	 if (i % K == 0){

	 	printf ("OK\n");

	 	return 0;

		}

	}

printf ("NG");

return 0;

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

using namespace std;

int main()

{

    int div,a,b,count;

    while(cin>>div>>a>>b)

    {

        count=0;

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

        {

            if(i%div==0)

            {

                count++;

                 break;

            }

        }

        if(count!=0)

        {

            cout<<"OK"<<endl;

        }

        else

        {

            cout<<"NG"<<endl;

        }

    }

}


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

int main ()

{

	int K, A, B;

	scanf ("%d", &K);

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

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

	{

	 if (i % K == 0){

	 	printf ("OK\n");

	 	return 0;

		}

	}

printf ("NG");

return 0;

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

#include <cmath>

using namespace std;

int main() {

    int k,a,b;

    cin>>k;

    cin>>a>>b;

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

    	cout<<"OK";

    }else if((((a/k)+1)*k)<b){

    	cout<<"OK";

    }else cout<<"NG";

    return 0;

}


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

int main ()

{

	int K, A, B;

	scanf ("%d", &K);

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

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

	{

	 if (i % K == 0){

	 	printf ("OK\n");

	 	return 0;

		}

	}

printf ("NG");

return 0;

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

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

#define debug  freopen("in.txt","r",stdin),freopen("out.txt","w",stdout);

#define pb push_back

#define all(x) x.begin(),x.end()

using namespace std;

typedef long long ll;

typedef pair<int,int> pii;

const int maxn = 1e6+10;

const int maxM = 1e6+10;

const int inf = 0x3f3f3f3f;



int K,A,B;

int main(){

	// debug;

	ios;



	cin>>K>>A>>B;

	if(B/K - (A-1)/K > 0) cout<<"OK\n";

	else cout<<"NG\n";



	return 0;

}


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

int main ()

{

	int K, A, B;

	scanf ("%d", &K);

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

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

	{

	 if (i % K == 0){

	 	printf ("OK\n");

	 	return 0;

		}

	}

printf ("NG");

return 0;

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

using namespace std;

int k,a,b,gg;

int main(){

	cin>>k>>a>>b;

	for (int i=1;i<=1000;i++){

		gg=k*i;

		if (a<=gg && gg<=b){

			cout<<"OK"<<endl;

			return 0;

		}

	}

	cout<<"NG"<<endl;

	return 0;

}

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

int main (){

	int n;

	scanf ("%d", &n);

	int c, r;

	scanf ("%d %d", &c, &r);

	for (int i = c; i <= r; i++){

		if (i % n == 0){

			printf ("OK");

			return 0;

		}else{

		continue;

		}

	}

	printf ("NG");

	return 0;

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

using namespace std;

int k,a,b;

int main(){

	cin>>k>>a>>b;

	if(a/k<b/k || (a%k==0 || b%k==0)) cout<<"OK"<<endl;

	else cout<<"NG"<<endl;

	

} 

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

int main (){

	int n;

	scanf ("%d", &n);

	int c, r;

	scanf ("%d %d", &c, &r);

	for (int i = c; i <= r; i++){

		if (i % n == 0){

			printf ("OK");

			return 0;

		}else{

		continue;

		}

	}

	printf ("NG");

	return 0;

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

#define eps 1e-3

#define pi acos(-1.0)

#define inf 0x3f

#define INF 0x3f3f3f3f

#define pb push_back

#define debug1 cout<<"&&";

#define debug2 cout<<"**";

#define ms(a, x) memset(a, x, sizeof(a))

#define for0(i, n) for(int i = 0; i < n; ++i)

#define for1(i, n) for(int i = 1; i <= n; ++i)

using namespace std;

typedef double db;

typedef long long ll;

typedef unsigned long long ull;

typedef pair<int, int> pii;

typedef pair<long long, int> pli;

typedef pair<long long, long long> pll;

const int mod = 1e9 + 7;

const int N = 1e5+10;

const int M = 1e6+10;

/*=================================================================================*/



int k, a, b, flag;



int main() {

   cin >> k >> a >> b;

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

      if(!(i%k)) flag = 1;

   }

   flag ? puts("OK") : puts("NG");

}

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

int main (){

	int n;

	scanf ("%d", &n);

	int c, r;

	scanf ("%d %d", &c, &r);

	for (int i = c; i <= r; i++){

		if (i % n == 0){

			printf ("OK");

			return 0;

		}else{

		continue;

		}

	}

	printf ("NG");

	return 0;

}