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