# include<iostream> # include<iomanip> using namespace std; int main(){ int i,j,k,n,m; cin>>n>>m; for(i=m;i<=n;i=i+m) cout<<i<<" "; return 0; }