#include<bits/stdc++.h>
using namespace std;
int main()
{
	long long a,b,c=0,i,j;
	cin>>a>>b;
	if(a==1)
	{
		cout<<b;
		return 0;
	}
	else if(a==2)
	{
	cout << "#include <iostream>" << endl;
	cout << "using namespace std;" << endl;
	cout << "int main() {" << endl;
	c++;
	for(j=1;j<=c;j++)
	{
		cout <<"    ";
	}
	cout<<"    "<<"cout <<"<<b<<" << endl;"<<endl;
	for(j=1;j<=c;j++)
	{
		cout <<"    ";
	}
	cout<<"    "<<"return 0;"<<endl;
	cout<<"}";
	}
	else
	{
		b=b-2;
		for(i=1;i<=b;i++)
		{
			cout << "#include <iostream>" << endl;
			cout << "using namespace std;" << endl;
			cout << "int main() {" << endl;
		}
		for(i=1;i<=b;i++)
		{
			for(j=1;j<=c;j++)
			{
				cout <<"    ";
			}
			cout<< "cout <<"<<b<<" << endl;" << endl;
			for(j=1;j<=c;j++)
			{
				cout <<"    ";
			}
			cout << "return 0;" << endl;
			cout<<"}";
		}
	}
	return 0;
}