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