#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	long long k;
	cin>>n>>k;
	if(n==1) cout<<k;
	else if(n==2)
	{
		cout<<"#include <bits/stdc++.h>"<<endl;
		cout<<"using namespace std;"<<endl;
		cout<<"int main() { cout<<k<<endl; return 0; }"<<endl;
	}
	else if(n==3)
	{
		cout<<"#include <iostream>"<<endl<<"using namespace std;"<<endl<<"int main() {  "<<endl<<"  cout << ""#include <iostream>"" << endl; "<<endl<<"  cout << ""using namespace std;"" << endl; "<<endl<<"  cout << ""int main() { cout << k << endl; "<<endl<<"return 0;"<<endl<<" }"; 
	} 
	return 0;
}