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

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