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