program probB
  implicit none
  integer*8 a,b,k
  integer*8 i,j,tmp

  read(*,*) a,b,k
  
  do i=0,k-1
     if ( a+i <= b ) then
        write (*,*) a+i
     end if
  end do

  tmp = a+i-1

  do i = k-1,0,-1
     if(b-i>tmp) write (*,*) b-i
  end do
     
end program probB
