#include <iostream>
#include <string>

using namespace std;

template<typename T>
class C {
	public:
		T z;

		C(T x, T y)
		{
			z = x + y;
		}
};

int main()
{
	C<int> ob_i(10,20);
	C<string> ob_s("10","20");

	cout << ob_i.z << endl;
	cout << ob_s.z << endl;

	return 0;
}

