include <stdio.h>
int main(void){
	int K,A,B;
	scanf("%d",&K);
    scanf("%d %d",&A,&B);
    if(K>=A){
    	if(K<=B){
        	printf("OK");
        }
    }
    else{
    	printf("NG");
    }
	return 0;
}