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

string s[10000][4];

int main()
{
	int n,m;
	cin>>n>>m;
	int cmp=n-3;
	if(n==1)
		cout<<m;
	else
	{
		cout<<"#include <iostream>"<<endl;
		cout<<"using namespace std;"<<endl;
		cout<<"int main(){"<<endl;
		n-=2;
		bool f=false;
		while(n--)
		{
			cout<<"    cout << ";
			cout<<"\"";
			cout<<"#include <iostream>";
			cout<<"\"";
			cout<<" << endl;";
			if(!f)
				cout<<endl;
			cout<<"    cout << ";
			cout<<"\"";
			cout<<"using namespace std;";
			cout<<"\"";
			cout<<" << endl;";
			if(!f)
				cout<<endl;
			cout<<"    cout << ";
			cout<<"\"";
			cout<<"int main() {";
			f=true;
		}
		cout<<" cout << ";
		cout<<m;
		cout<<" << endl; return 0; }";
		cout<<"\"";
		while(cmp--)
			cout<<" << endl; return 0; }";
		cout<<"\";"<<endl;
		cout<<"    return 0;"<<endl;
		cout<<"}";
	}
	return 0;
}