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