# include <bits/stdc++.h> using namespace std; string hs (int n, int k){ if (n == 1){ string s = ""; char c; while (k >= 1){ c = (k % 10 + 48); s = c + s; k /= 10; } return "cout << " + s + " << endl; return 0; "; }else{ cout << "cout << \x22# include <iostream>\x22 << endl;"; cout << "cout << \x22using namespace std;\x22 << endl;"; cout << "cout << \x22int main(){"; cout << hs(n - 1, k); cout << "}\x22 << endl;"; cout << "return 0;"; cout << "}"; } } int main (){ int n, k; string s; cin >> n >> k; cout << "# include <iostream>" << endl; cout << "using namespace std;" << endl; cout << "int main (){"<< endl; s = hs(n - 1, k); cout << s; cout << "}"; return 0; }