#include <iostream>
#include <iomanip>
#include <vector>
using namespace std;
int main ()
{
vector <int> v (5, -1);
vector <int> :: iterator itr=v.begin();
const unsigned size = v.size() ;
for (unsigned i=0; i < size; ++i)
itr = v.insert(itr, i) + 2 ;
for ( auto e : v )
cout << setw(2) << e << '\n' ;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aW9tYW5pcD4KI2luY2x1ZGUgPHZlY3Rvcj4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluICgpCnsKCXZlY3RvciA8aW50PiB2ICg1LCAtMSk7Cgl2ZWN0b3IgPGludD4gOjogaXRlcmF0b3IgaXRyPXYuYmVnaW4oKTsKCiAgICBjb25zdCB1bnNpZ25lZCBzaXplID0gdi5zaXplKCkgOwogCWZvciAodW5zaWduZWQgaT0wOyBpIDwgc2l6ZTsgKytpKQoJICAgICBpdHIgPSB2Lmluc2VydChpdHIsIGkpICsgMiA7CgogICAgZm9yICggYXV0byBlIDogdiApCiAgICAJY291dCA8PCBzZXR3KDIpIDw8IGUgPDwgJ1xuJyA7CgoJcmV0dXJuIDA7Cn0=