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