#include<bits/stdc++.h>using namespace std;int main(){ int a1,an,d; while(cin>>a1>>an>>d){ int s=(an-a1)/d; for(int i=0;i<=s;i++) cout<<a1+i*d<<" "; cout<<endl; } return 0;}