#include <vector>
#include <iostream>
using namespace std;
int main() {
vector<int> data{1, 2, 3, 4, 5, 6, 7};
for (auto elem : data) {
data.push_back(elem * 2);
data.push_back(elem * 3);
}
for (int x : data) { cout << x << " "; }
cout << "\n";
}
I2luY2x1ZGUgPHZlY3Rvcj4KI2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cgl2ZWN0b3I8aW50PiBkYXRhezEsIDIsIDMsIDQsIDUsIDYsIDd9OwoJZm9yIChhdXRvIGVsZW0gOiBkYXRhKSB7CgkJZGF0YS5wdXNoX2JhY2soZWxlbSAqIDIpOwoJCWRhdGEucHVzaF9iYWNrKGVsZW0gKiAzKTsKCX0KCQoJZm9yIChpbnQgeCA6IGRhdGEpIHsgY291dCA8PCB4IDw8ICIgIjsgfQoJY291dCA8PCAiXG4iOwp9