#include<bits/stdc++.h> #define int long long using namespace std; int n , k; string tos(int k){ int l = k; string ans; while(l){ ans += char(l % 10 + '0'); l /= 10; } reverse(ans.begin() , ans.end()); return ans; } void cot(string s){ cout << "cout << \"" << s << "\" << endl;"; } string rcot(string s){ s = "\\\"" + s + "\\\""; return "cout << \" << \"" + s + "\" << \" << endl;"; } signed main(){ ios::sync_with_stdio(false); cin.tie(0) , cout.tie(0); cin >> n >> k; string tsk = "int main() { cout << " + tos(k) + " << endl; return 0; }"; string head1 = "#include <iostream>"; string head2 = "using namespace std;"; if(n == 1){ cout << k << endl; return 0; } if(n == 2){ cout << head1 << endl << head2 << endl << tsk; return 0; } if(n == 3){ cout << head1 << endl << head2 << endl << "int main(){" << endl; cot(head1); cot(head2); cot(tsk); cout << "return 0; }\n"; return 0; } if(n == 4){ cout << head1 << endl << head2 << endl << "int main(){" << endl; cot(head1); cot(head2); cot("int main(){"); cot(rcot(head1)); cot(rcot(head2)); cot(rcot(tsk)); cot("return 0; }"); cout << "return 0; }\n"; return 0; } return 0; }