program sample
	implicit none
    integer(8) :: K,A,B
    
    read(*,*) K
    read(*,*) A,B
    
	if (A/K == B/K) then
    	write(*,*) 'OK'
    else
    	write(*,*) 'NG'
    end if

    stop
end program sample
