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