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