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



if b - a < k*2:

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

        print(j)

else:

    for j in [i for i in range(a, a+k)]:

        print(j)

    for j in [i for i in range(b-k+1, b+1)]:

        print(j)
A, B, K = list(map(int, input().split()))



L = []

s = [i for i in range(A, min(A+K, B+1))]

l = [j for j in range(B, max(A-1, B-K), -1)]

L += s + l

L = list(set(L))

L.sort()



for i in L:

    print(i)
a, b, k = list(map(int, input().split()))
if b - a < k * 2:
    for j in [i for i in range(a, b + 1)]:
        print(j)
else:
    for j in [i for i in range(a, a + k)]:
        print(j)
    for j in [i for i in range(b - k + 1, b + 1)]:
        print(j)

A, B, K = list(map(int, input().split()))
L = []
s = [i for i in range(A, min(A + K, B + 1))]
l = [j for j in range(B, max(A - 1, B - K), -1)]
L += s + l
L = list(set(L))
L.sort()
for i in L:
    print(i)

-a, b, k = list(map(int, input().split())) -if b - a < k * 2: -    for j in [i for i in range(a, b + 1)]: -        print(j) -else: -    for j in [i for i in range(a, a + k)]: -        print(j) -    for j in [i for i in range(b - k + 1, b + 1)]: -        print(j) +A, B, K = list(map(int, input().split())) +L = [] +s = [i for i in range(A, min(A + K, B + 1))] +l = [j for j in range(B, max(A - 1, B - K), -1)] +L += s + l +L = list(set(L)) +L.sort() +for i in L: +    print(i)