(lambda n:[print(i,end=' ') for i in range(n[0],n[1]-1,n[2])] if n[0]>n[1] else [print(i,end=' ') for i in range(n[0],n[1]+1,n[2])])([int(i) for i in input().split()])