#include <bits/stdc++.h>
using namespace std;
#define LL long long
const int N = 1e6 + 10;
int n, k;
int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(0); cout.tie(0);
	cin >> n >> k;
	if (n == 1) {
		cout << k << '\n';
		return 0; 
	}
	if (n == 2) {
		cout << "#include <iostream>\n";
		cout << "using namespace std;\n";
		cout << "int main() {cout << " << k << " << endl; return 0; }";
		return 0;
	}
	if (n == 3) {
		cout << "#include <iostream>\n";
		cout << "using namespace std;\n";
		cout << "int main() {\n";
		cout << "    cout << ";
		cout << '"' << "#include <iostream>" << '"' << "<< endl;" << '\n';
		cout << "    cout << " << '"' << "using namespace std;" << '"' << "<< endl;" << '\n';
		cout << "    cout << " << '"' << "int main() {cout << " << " << "<< k << " << " << '"' << " << endl; return 0; }" << '"';
		cout << '\n' << "}";
		return 0;
	}
	return 0;
}