program ABC_093_B_SmallandLargeIntegers
   implicit none
   integer(8) A, B
   integer K, i
   read(*, *) A, B, K
   if(B-A+1 <= 2 * K) then
       do i = A, B
	       write(*, *) i
	   end do
   else 
       do i = A, A + K - 1
          write(*, *) i
       end do
       do i = B - K + 1, B
           write(*, *) i
       end do
   end if
end program ABC_093_B_SmallandLargeIntegers