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