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