

import sys

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

if((B-A) < K):

    for i in range(A,B+1):

        print(i)

    sys.exit()

ansmin=[i for i in range(A,A+K,1)]

ansmax=[i for i in range(B,B-K,-1)]



ans=ansmin+ansmax

ans=set(ans)

ans=sorted(ans)

for a in ans:

    print(a)

def myAnswer(A:int,B:int,K:int) -> int:

   if(B - A >= K):

      ans = [i for i in range(A,A+K) ]

      for i in range(B,B-K,-1):

         ans.append(i)

   else:

      ans = [i for i in range(A,B+1)]

   ans = list(set(ans))

   ans.sort()

   for a in ans:

      print(a)



   



def modelAnswer():

   tmp=1

def main():

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

   myAnswer(A,B,K)



if __name__ == '__main__':

   main()
import sys

A, B, K = list(map(int, input().split()))
if (B - A) < K:
    for i in range(A, B + 1):
        print(i)
    sys.exit()
ansmin = [i for i in range(A, A + K, 1)]
ansmax = [i for i in range(B, B - K, -1)]
ans = ansmin + ansmax
ans = set(ans)
ans = sorted(ans)
for a in ans:
    print(a)

def myAnswer(A: int, B: int, K: int) -> int:
    if B - A >= K:
        ans = [i for i in range(A, A + K)]
        for i in range(B, B - K, -1):
            ans.append(i)
    else:
        ans = [i for i in range(A, B + 1)]
    ans = list(set(ans))
    ans.sort()
    for a in ans:
        print(a)


def modelAnswer():
    tmp = 1


def main():
    A, B, K = list(map(int, input().split()))
    myAnswer(A, B, K)


if __name__ == "__main__":
    main()

-import sys +def myAnswer(A: int, B: int, K: int) -> int: +    if B - A >= K: +        ans = [i for i in range(A, A + K)] +        for i in range(B, B - K, -1): +            ans.append(i) +    else: +        ans = [i for i in range(A, B + 1)] +    ans = list(set(ans)) +    ans.sort() +    for a in ans: +        print(a) -A, B, K = list(map(int, input().split())) -if (B - A) < K: -    for i in range(A, B + 1): -        print(i) -    sys.exit() -ansmin = [i for i in range(A, A + K, 1)] -ansmax = [i for i in range(B, B - K, -1)] -ans = ansmin + ansmax -ans = set(ans) -ans = sorted(ans) -for a in ans: -    print(a) + +def modelAnswer(): +    tmp = 1 + + +def main(): +    A, B, K = list(map(int, input().split())) +    myAnswer(A, B, K) + + +if __name__ == "__main__": +    main()