program main
  implicit none
  integer :: a, b, k, i
  read(*, *) a, b, k
  if (b - a > 200) then
    do i = 0, k - 1
      write(*, "(i0)") a + i
    end do
    do i = k - 1, 0, -1
      write(*, "(i0)") b - i
    end do
  else
    do i = a, b
      if (i - a < k .or. b - i < k) then
        write(*, "(i0)") i
      end if
    end do
  end if
end program main
