ip=[int(x) for x in input().split()]

a=ip[0]

b=ip[1]

k=ip[2]

if k>=(b-a+1):

  for i in range(a,b+1):

    print(i)

else:

	lw=list(range(a,a+k))

	hg=list(range(b-k+1,b+1))

	res=list(set(lw+hg))

	res.sort()

	for i in res:

  		print(i)

ip=[int(x) for x in input().split()]

a=ip[0];b=ip[1];k=ip[2]

ans=list()

for i in range(0,k):

    ans.append(a)

    ans.append(b)

    a=a+1

    b=b-1

    if((a>ip[1])|(b<ip[0])):

        break

res=list(set(ans))

res.sort()

for i in res:

    print(i)
ip = [int(x) for x in input().split()]
a = ip[0]
b = ip[1]
k = ip[2]
if k >= (b - a + 1):
    for i in range(a, b + 1):
        print(i)
else:
    lw = list(range(a, a + k))
    hg = list(range(b - k + 1, b + 1))
    res = list(set(lw + hg))
    res.sort()
    for i in res:
        print(i)

ip = [int(x) for x in input().split()]
a = ip[0]
b = ip[1]
k = ip[2]
ans = list()
for i in range(0, k):
    ans.append(a)
    ans.append(b)
    a = a + 1
    b = b - 1
    if (a > ip[1]) | (b < ip[0]):
        break
res = list(set(ans))
res.sort()
for i in res:
    print(i)

-if k >= (b - a + 1): -    for i in range(a, b + 1): -        print(i) -else: -    lw = list(range(a, a + k)) -    hg = list(range(b - k + 1, b + 1)) -    res = list(set(lw + hg)) -    res.sort() -    for i in res: -        print(i) +ans = list() +for i in range(0, k): +    ans.append(a) +    ans.append(b) +    a = a + 1 +    b = b - 1 +    if (a > ip[1]) | (b < ip[0]): +        break +res = list(set(ans)) +res.sort() +for i in res: +    print(i)