a = int(input())-1
b = int(input())
c = int(input())+1
d = ""
while (c!=0) and (a < b) and (c > (b - a)):
a +=1
d = d+" "+str(a)
c -=1
print(d)
P.s вводим: "5", "15", "11", получаем "5 6 7 8 9 10 11 12 13 14 15"
или вводим: "5", "10", "6", получим "5 6 7 8 9 10"
a = int(input())-1
b = int(input())
c = int(input())+1
d = ""
while (c!=0) and (a < b) and (c > (b - a)):
a +=1
d = d+" "+str(a)
c -=1
print(d)
P.s вводим: "5", "15", "11", получаем "5 6 7 8 9 10 11 12 13 14 15"
или вводим: "5", "10", "6", получим "5 6 7 8 9 10"