#include <bits/stdc++.h>
using namespace std;

int main()
{
	int n, m;
	cin >> n >> m;
	if(n == 1) cout << m;
	if(n == 2)
	{
		cout << "#include <iostream>" << endl;
		cout << "using namespace std;" << endl;
		cout << endl;
		cout << "int main() { cout << " << m << " << endl; return 0; }";
	}
	if(n == 3)
	{
		cout << "#include <iostream>" << endl;
		cout << "using namespace std;" << endl;
		cout << endl;
		cout << "int main() { " << endl;
		cout << "   cout << " << "\"" << "#include <iostream>" << "\"" << " << endl;" << endl;
		cout << "   cout << " << "\"" << "using namespace std;" << "\"" << " << endl;" << endl;
		cout << "   cout << " << "\"" << "int main() { cout << " << m << " << endl; return 0; }" << "\"" << " << endl;" << endl;
		cout << "   return 0;"<< endl;
		cout << "}";
	}
	if(n == 4)
	{
		cout << "#include <iostream>" << endl;
		cout << "using namespace std;" << endl;
		cout << endl;
		cout << "int main() { " << endl;
		cout << "   cout << " << "\"" << "#include <iostream>" << "\"" << " << endl;" << endl;
		cout << "   cout << " << "\"" << "using namespace std;" << "\"" << " << endl;" << endl;
		cout << "   cout << " << "\"" << "int main() { " << "\"" << endl;
		cout << "      cout << " << "\"" << "#include <iostream>" << endl;
	}
	return 0;
}