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.
a, b, c = map(int, input().split())
d = {}
for i in range(a, a+c):
    d[i] = 1
    if i == b:
        break
for i in range(b, b-c, -1):
    d[i] = 1
    if i == b:
        break
d = sorted(d.items())
for i, j in d:
    print(i)

a, b, c = map(int, input().split())
d = []
for i in range(a, a + c):
    if i not in d and i <= b:
        d.append(i)
for i in range(b, b - c, -1):
    if i not in d and i >= a:
        d.append(i)
d.sort()
for i in d:
    print(i)
