#include<bits/stdc++.h> using namespace std; int main(){ int n,a,m; cin>>n>>a>>m; for(int i=n;i<=a;i++){ if (i%m==0) { cout<<i<<" "; } } return 0; }