#include<bits/stdc++.h> using namespace std; #define int long long int n, k; signed main(){ cin >> n >> k; if(n == 1){ cout << k << endl; return 0; } cout << "#include <iostream>" << endl; cout << "using namespace std;" << endl << endl; cout << "int main() {" << endl; for(int i = 1; i < n - 1; i++){ for(int j = 1; j <= i; j++){ cout << " cout << \""; } cout << "#include <iostream>"; for(int j = 1; j <= i; j++){ cout << "\" << endl;"; } cout << endl; for(int j = 1; j <= i; j++){ cout << " cout << \""; } cout << "using namespace std;"; for(int j = 1; j <= i; j++){ cout << "\" << endl;"; } cout << endl; for(int j = 1; j <= i; j++){ cout << " cout << \""; } cout << "int main() {"; for(int j = 1; j <= i; j++){ cout << "\" << endl;"; } cout << endl; } for(int i = 1; i < n - 1; i++){ cout << " cout << \""; } cout << " cout << " << k << " << endl;"; for(int i = 1; i < n - 1; i++){ cout << "\" << endl;"; } cout << endl; for(int i = n - 2; i >= 1; i--){ for(int j = 1; j <= i; j++){ cout << " cout << \""; } cout << " return 0;"; for(int j = 1; j <= i; j++){ cout << "\" << endl;"; } cout << endl; for(int j = 1; j <= i; j++){ cout << " cout << \""; } cout << "}"; for(int j = 1; j <= i; j++){ cout << "\";"; } cout << endl; } cout << " return 0;" << endl; cout << "}"; } //#include <iostream> //using namespace std; // //int main() { // cout << "#include <iostream>" << endl; // cout << "using namespace std;" << endl << endl; // cout << "int main() {" << endl; // cout << " cout << \"#include <iostream>\" << endl;" << endl; // cout << " cout << \"using namespace std;\" << endl << endl;" << endl; // cout << " cout << \"int main() {\" << endl;" << endl; // cout << " cout << \" cout << 4096 << endl;\" << endl;" << endl; // cout << " cout << \" return 0;\" << endl;" << endl; // cout << " cout << \"}\" << endl;" << endl; // cout << " return 0;" << endl; // cout << "}" << endl; // return 0; //}