program prob10
    implicit none
    integer :: k, a, b
    read(*,*) k,a,b

    if((b/k) /= (a-1)/k) then
        write(*,*) "OK"
    else
        write(*,*) "NG"
    end if


    stop
contains
end program prob10