#include<iostream> using namespace std; void work(int n,int k,int dep) { for(int i=1; i<=dep; i++) cout<<" "; cout<<"cout << "<<"\""<<"#include<iostream> << endl"<< "\""<<";"<<endl; for(int i=1; i<=dep; i++) cout<<" "; cout<<"cout << "<< "\""<<"using namespace std; << endl"<< "\""<<";"<<endl; for(int i=1; i<=dep; i++) cout<<" "; cout<<"cout << "<< "\""<<"int main() {"<<"\""<<";"<<endl; if(n>2) work(n-1,k,dep+1); else { for(int i=1; i<=dep; i++) cout<<" "; cout<<"cout << "<<k<<" << endl; return 0; }"<< "\""; } cout<<" << endl;"; } int main() { int n,k; cin>>n>>k; if(n>1){ cout<<"#include<iostream>"<<endl; cout<< "using namespace std;" << endl<<endl; cout<< "int main() { " << endl; work(n-1,k,1); } else cout<<k; cout<<endl<<" return 0;"<<endl<<"}"; return 0; }