/* ex_7_8.c++ */

#include <iostream>
#include <vector>
using namespace std;

typedef vector<int> int_vector;

int main(void) {
	int_vector v;
	
	v.resize(5);
	v[0] = 1;
	v[1] = 7;
	v[2] = 5;
	v[3] = 13;
	v[4] = 4;

	v.insert(v.begin()+3, 333);
	v.insert(v.end()-1, 2, 222);

	int_vector::iterator it;
	for (it = v.begin(); it != v.end(); ++it) 
		cout << *it << endl;
	return 0;
} 