#include<bits/stdc++.h> using namespace std; int main(){ int n,m; cin>>n>>m; if(n==1) cout<<m; else{ if(n<=3){ cout<<"#include <iostream>\n"; cout<<"using namespace std;\n\n"; cout<<"int main() { \n"; for(int i=1;i<=n-2;i++){ for(int j=1;j<=i;j++) cout<<" "; cout<<"cout<<"<<"\""<<"#include <iostream>"<<"\""<<"<<endl;"<<endl; for(int j=1;j<=i;j++) cout<<" "; cout<<"cout<<"<<"\""<<"using namespace std;"<<"\""<<"<<endl;"<<endl; for(int j=1;j<=i;j++) cout<<" "; if(i==n-2) cout<<"cout<<"<<"\""<<"int main() { cout << "<<m<<" << endl; return 0; }"<< "\""<<" << end"<<"\n"; else cout<<"cout<<"<<"\""<<"int main() {"<<"\""<<"endl;"<<endl; } for(int i=n-2;i>=1;i--){ for(int j=1;j<=i;j++) cout<<" "; cout<<"return 0;"<<"\n"; for(int j=2;j<=i;j++) cout<<" "; cout<<"}"<<"\n"; } } if(n==4){ cout<<"#include <iostream>\n"; cout<<"using namespace std;\n\n"; cout<<"int main() { \n"; for(int i=1;i<=2;i++){ if(i==1){ for(int j=1;j<=i;j++) cout<<" "; cout<<"cout<<"<<"\""<<"#include <iostream>"<<"\""<<"<<endl;"<<endl; for(int j=1;j<=i;j++) cout<<" "; cout<<"cout<<"<<"\""<<"using namespace std;"<<"\""<<"<<endl;"<<endl; for(int j=1;j<=i;j++) cout<<" "; if(i==n-2) cout<<"cout<<"<<"\""<<"int main() { cout << "<<m<<" << endl; return 0; }"<< "\""<<" << end"<<"\n"; else cout<<"cout<<"<<"\""<<"int main() {"<<"\""<<"endl;"<<endl; }else{ for(int j=1;j<=i;j++) cout<<" "; cout<<"cout<<"<<"\""<<"cout<<"<<"#include <iostream>"<<"\""<<"<<endl;"<<endl; for(int j=1;j<=i;j++) cout<<" "; cout<<"cout<<"<<"\""<<"cout<<"<<"using namespace std;"<<"\""<<"<<endl;"<<endl; for(int j=1;j<=i;j++) cout<<" "; if(i==n-2) cout<<"\""<<"cout<<"<<"int main() { cout << "<<m<<" << endl; return 0; }"<< "\""<<" << end"<<"\n"; else cout<<"\""<<"cout<<"<<"int main() {"<<"\""<<"endl;"<<endl; } } // for(int i=n-2;i>=1;i--){ // if(i==n-2){ // for(int j=1;j<=i;j++) cout<<" "; // cout<<"return 0;"<<"\n"; // for(int j=2;j<=i;j++) cout<<" "; // cout<<"}"<<"\n"; // }else{ // for(int j=1;j<=i;j++) cout<<" "; // cout<<"\""<<"cout<<return 0;"<<"\n"; // for(int j=2;j<=i;j++) cout<<" "; // cout<<"\""<<"cout<<}"<<"\n"; // } // } } } return 0; }