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

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