import java.util.Scanner;
 
public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int num3 = scan.nextInt();
        int i;
        int j=0;
      
        for(i=num2; i<=num3;i++){
            if(i%num1==0){
                System.out.println("OK");
                j=1;
                break;
                }
            }
        if(j==0)
              System.out.println("NG");
        scan.close();
    }
}
 import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int num3 = scan.nextInt();
        int i;
        int j=0;
      
        for(i=num2; i<=num3;i++){
            if(i%num1==0){
                System.out.println("OK");
                j=1;
                break;
                }
            }
        if(j==0)
              System.out.println("NG");
        scan.close();
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int num3 = scan.nextInt();
        int i;
        int j=0;
      
        for(i=num2; i<=num3;i++){
            if(i%num1==0){
                System.out.println("OK");
                j=1;
                break;
                }
            }
        if(j==0)
              System.out.println("NG");
        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int num3 = scan.nextInt();
        int i;
        int j=0;
      
        for(i=num2; i<=num3;i++){
            if(i%num1==0){
                System.out.println("OK");
                j=1;
                break;
                }
            }
        if(j==0)
              System.out.println("NG");
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num1 = scan.nextInt(); num1 scan.nextInt() scan.nextInt scan int num2 = scan.nextInt(); num2 scan.nextInt() scan.nextInt scan int num3 = scan.nextInt(); num3 scan.nextInt() scan.nextInt scan int i; i int j=0; j 0 for(i=num2; i<=num3;i++){
            if(i%num1==0){
                System.out.println("OK");
                j=1;
                break;
                }
            } i=num2; i=num2 i num2 i<=num3 i num3 i++ i++ i {
            if(i%num1==0){
                System.out.println("OK");
                j=1;
                break;
                }
            } {
            if(i%num1==0){
                System.out.println("OK");
                j=1;
                break;
                }
            } if(i%num1==0){
                System.out.println("OK");
                j=1;
                break;
                } i%num1==0 i%num1 i num1 0 {
                System.out.println("OK");
                j=1;
                break;
                } System.out.println("OK") System.out.println System.out System System.out "OK" j=1 j 1 break; if(j==0)
              System.out.println("NG"); j==0 j 0 System.out.println("NG") System.out.println System.out System System.out "NG" scan.close() scan.close scan String[] args args public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int num3 = scan.nextInt();
        int i;
        int j=0;
      
        for(i=num2; i<=num3;i++){
            if(i%num1==0){
                System.out.println("OK");
                j=1;
                break;
                }
            }
        if(j==0)
              System.out.println("NG");
        scan.close();
    }
} public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int num3 = scan.nextInt();
        int i;
        int j=0;
      
        for(i=num2; i<=num3;i++){
            if(i%num1==0){
                System.out.println("OK");
                j=1;
                break;
                }
            }
        if(j==0)
              System.out.println("NG");
        scan.close();
    }
} Main
import java.util.Scanner;
 
public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();
        int num3 = scan.nextInt();
        int i;
        int j=0;
      
        for(i=num2; i<=num3;i++){
            if(i%num1==0){
                System.out.println("OK");
                j=1;
                break;
                }
            }
        if(j==0)
              System.out.println("NG");
        scan.close();
    }
}

