#include<stdio.h>

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

int distance=568;
int remainder=distance%K;

if(distance>=A && distance<=B && remainder==0){ 
printf("Ok\n");}
else{ printf("NG\n");}
    return 0;
}