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