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