program sample
implicit none
integer K,A,B,C,count
read(*,*)K
read(*,*)A,B
C=A/K
count=(C+1)*K
If (count>=A.and.count<=B) then
   write(*,*) "OK"
else
   write(*,*) "NG"
end if
stop
end program sample