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