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

int a, b;

signed main()
{
	ios::sync_with_stdio(false);
	cin.tie(0), cout.tie(0);
	cin >> a >> b;
	if (a == 3)
	{
		cout << "#include <iostream> ";
		cout << "using namespace std; ";
		cout << "int main() { ";
		cout << "	cout << \"#include <iostream>\" << endl;";
		cout << "	cout << \"using namespace std;\" << endl;";
		cout << "	cout << \"int main() { cout << ";
		cout << b;
		cout << " << endl; return 0; }\" << endl;";
		cout << "}";
	}
	if (a == 4)
	{
		cout << "#include <iostream> \n";
		cout << "using namespace std; ";
		cout << "int main() { ";
		cout << "cout << \\\"\"#include <iostream>\\\"\";";
		cout << "cout << \\\"using namespace std; \";";
		cout << "cout << \\\"int main() { \\\";";
		cout << "cout << \"	cout << \\\"\"#include <iostream>\\\"\" << endl;\"; ";
		cout << "cout << \"	cout << \\\"\"using namespace std;\\\"\" << endl;\";";
		cout << "cout << \"	cout << \\\"\"int main() { cout << \\\"\";";
		cout << "cout << ";
		cout << b;
		cout << " ;";
		cout << "cout << \" << endl; return 0; }\" << endl;\";";
		cout << "cout << \"}\";";
		cout << "}";
	}
	if (a == 1) cout << b;
	if (a == 2)
	{
		cout << "#include <iostream> ";
		cout << "using namespace std; ";
		cout << "int main() { ";
		cout << "cout << ";
		cout << b;
		cout << "; return 0; }";
	}
	return 0;
}