#include<stdio.h>

int main(){
   int k,a,b;

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

   int big = (b/k)*k;
   if(a <= big){
      printf("OK\n");
   }else{
      printf("NG\n");
   }
   return 0;
}
