#include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> v;
int n = 5, m = 3;
v.resize(n + m);
fill(v.begin(), v.begin() + n, 1);
fill(v.begin() + n, v.end(), 2);
for (int i = 0; i < n + m; ++i) {
cout << v[i] << " ";
}
cout << '\n';
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cgl2ZWN0b3I8aW50PiB2OwoJaW50IG4gPSA1LCBtID0gMzsKCXYucmVzaXplKG4gKyBtKTsKCWZpbGwodi5iZWdpbigpLCB2LmJlZ2luKCkgKyBuLCAxKTsKCWZpbGwodi5iZWdpbigpICsgbiwgdi5lbmQoKSwgMik7Cglmb3IgKGludCBpID0gMDsgaSA8IG4gKyBtOyArK2kpIHsKCQljb3V0IDw8IHZbaV0gPDwgIiAiOwoJfQoJY291dCA8PCAnXG4nOwoJCglyZXR1cm4gMDsKfQ==