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

void put(int k, int f)
{
	while (k > 1)
	{
		k--;
		cout << "	cout << \"";
	}
	if (f && k == 1) cout << "	cout << \\\"";
	else if (k == 1) cout << "	cout << \"";
}
void out(int k, int f)
{
	while (k > 1)
	{
		k--;
		if (k == 2 && f) cout << "\\\";";
		else cout << "\";";
	}
	cout << endl;
}

void dg(int n, int m, int k)
{
	if (n == 1) {put(k, 1); cout << m; out(k, 1); return ;}
	put(k, 0); cout << "#include<bits/stdc++.h>"; out(k, 0);
	put(k, 0); cout << "using namespace std;"; out(k, 0);
	put(k, 0); cout << "int main()"; out(k, 0);
	put(k, 0); cout << "{"; out(k, 0);
	dg(n - 1, m, k + 1);
	put(k, 0); cout << "	return 0;"; out(k, 0);
	put(k, 0); cout << "}";  out(k, 0);
}

int main()
{
	int n, m;
	scanf("%d %d", &n, &m);
	dg(n, m, 0);
	return 0;
}