m=int(input())n=int(input())k=int(input())if m<n and k>0: for i in range(m,n,k): print(i)
1 10 2
1 3 5 7 9
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!