#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main()
{
vector<int> a{1,2,3,4,5,6,7,8,9};
for (auto &i : a)
{
if (i % 2)
{
cout << i << " ";
i *= 2;
}
}
cout << endl;
for (auto i : a)
cout << i << " ";
cout << endl;
system("pause");
return 0;
}