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

template<class T>
void TestVec(std::vector<T>& v, T val)
{
	v.push_back(val);
}


int main() {
	std::vector<int> int_vec;
	std::vector<std::string> str_vec;
	TestVec(int_vec, 228);
	TestVec(str_vec, std::string("pidor"));
	
	std::cout<< int_vec.back() << " " << str_vec.back();
	// your code goes here
	return 0;
}