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

int main()
{
	int n,k,m;
	cin >> n >> k;
	n -= 2;
	m = n;
	cout << "#include <iostream>" << endl;
	cout << "using namespace std;" << endl << endl;
	cout << "int main() { " << endl;
	if (n+2 == 2)
	{
		cout << " cout << " << k << " << endl;" << endl;
	}
	while (n--)
	{
		
		for (int i = 1;i<=m-n;i++)
		{
			cout << " cout << " << "\"" << "#include <iostream>" << "\"" << " << endl;" << endl;
			cout << " cout << " << "\"" << "using namespace std;" << "\"" << " << endl;" << endl;
			cout << " cout << " << "\"" << "int main() { cout << " << k << " << endl; return 0; }" << "\"" << " << endl;" << endl;
		} 
		
	}
	cout << " return 0;" << endl;
	cout << "}";
	return 0;
}