#include<stdio.h>

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

    printf("%d,%d,%d",K,A,B);
    if(B/K != A/K )
        printf("\nOK");
    else 
        printf("\nNG");
    return 0;
}