#include <iostream>
#include <vector>
using namespace std;
int main () {
vector<int> vetor;
for (int i = 0; i < 10; i++) {
vetor.push_back(i);
}
for (vector<int>::iterator it = vetor.begin(); it != vetor.end(); it++) {
cout << ' ' << *it;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4gKCkgewogICAgdmVjdG9yPGludD4gdmV0b3I7CiAgICBmb3IgKGludCBpID0gMDsgaSA8IDEwOyBpKyspIHsKICAJICAgIHZldG9yLnB1c2hfYmFjayhpKTsKICAgIH0KICAgIGZvciAodmVjdG9yPGludD46Oml0ZXJhdG9yIGl0ID0gdmV0b3IuYmVnaW4oKTsgaXQgIT0gdmV0b3IuZW5kKCk7IGl0KyspIHsKICAgICAgICBjb3V0IDw8ICcgJyA8PCAqaXQ7CiAgICB9Cn0=