Print all the integers that satisfies the following in ascending order:    * Among the integers between A and B (inclusive), it is either within the K smallest integers or within the K largest integers.
import sys
input=sys.stdin.readline

a,b,k=map(int,input().split())

ans1=set()
ans2=set()
for i in range(k):
	ans1.add(a+i)

for i in reversed(range(k)):
	ans2.add(b-i)

lists=list(ans1&ans2)
lists.sort()
for i in lists:
	print(i)
import sys
input=sys.stdin.readline

a,b,k=map(int,input().split())

ans=set()
for i in range(k):
	if a+i<=b:
		ans.add(a+i)

for i in range(k):
	if b-i>=a:
		ans.add(b-i)

lists=list(ans)
lists.sort()
for i in lists:
	print(i)