#include <bits/stdc++.h>
using namespace std;
int main(){
ofstream fout("tripod.txt");
if(!fout.is_open()){
cout<<"File open error!";
exit(1);
}
int h;
do{
cout<<"h? ";
cin>>h;
cout<<endl;
}while(h<4);
int len=3+2*(h-2);
int i=len;
while(i--) fout<<"*";
fout<<endl;
// int st=len-2;
int inter=0;
for(int st=h-2;st>=0;--st){
for(int i=0;i<st;++i)fout<<" ";
for(int k=0;k<3;++k){
fout<<"*";
for(int j=0;j<inter;++j){
fout<<" ";
}
}
inter++;
fout<<endl;
}
return 0;
}
#include <bits/stdc++.h>
using namespace std;
void count3(ch