a=int(input())
b=int(input())
k=int(input())

for i in range(a, b + 1, k):
   print(i)