100 atcoder#ABC093B. [ABC093B] Small and Large Integers

[ABC093B] Small and Large Integers

Score : 200200 points

Problem Statement

Print all the integers that satisfies the following in ascending order:

  • Among the integers between AA and BB (inclusive), it is either within the KK smallest integers or within the KK largest integers.

Constraints

  • 1AB1091 \leq A \leq B \leq 10^9
  • 1K1001 \leq K \leq 100
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

AA BB KK

Output

Print all the integers that satisfies the condition above in ascending order.

3 8 2
3
4
7
8
  • 33 is the first smallest integer among the integers between 33 and 88.
  • 44 is the second smallest integer among the integers between 33 and 88.
  • 77 is the second largest integer among the integers between 33 and 88.
  • 88 is the first largest integer among the integers between 33 and 88.
4 8 3
4
5
6
7
8
2 9 100
2
3
4
5
6
7
8
9