#include<iostream>
#include<cstdio>
using namespace std;
int a;
int main(){
freopen("fractal.in","r",stdin);
freopen("fractal.out","w",stdout);
while(cin>>a){
if(a==1){
cout<<"X"<<endl;
cout<<"_"<<endl;
}
if(a==2){
cout<<"X X"<<endl;
cout<<" X "<<endl;
cout<<"X X"<<endl;
cout<<"_"<<endl;
}
if(a==3){
cout<<"X X X X"<<endl;
cout<<" X X "<<endl;
cout<<"X X X X"<<endl;
cout<<" X X "<<endl;
cout<<" X "<<endl;
cout<<" X X "<<endl;
cout<<"X X X X"<<endl;
cout<<" X X "<<endl;
cout<<"X X X X"<<endl;
cout<<"_"<<endl;
}
if(a==4){
cout<<"X X X X X X X X"<<endl;
cout<<" X X X X "<<endl;
cout<<"X X X X X X X X"<<endl;
cout<<" X X X X "<<endl;
cout<<" X X "<<endl;
cout<<" X X X X "<<endl;
cout<<"X X X X X X X X"<<endl;
cout<<" X X X X "<<endl;
cout<<"X X X X X X X X"<<endl;
cout<<" X X X X "<<endl;
cout<<" X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X "<<endl;
cout<<" X "<<endl;
cout<<" X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X "<<endl;
cout<<" X X X X "<<endl;
cout<<"X X X X X X X X"<<endl;
cout<<" X X X X "<<endl;
cout<<"X X X X X X X X"<<endl;
cout<<" X X X X "<<endl;
cout<<" X X "<<endl;
cout<<" X X X X "<<endl;
cout<<"X X X X X X X X"<<endl;
cout<<" X X X X "<<endl;
cout<<"X X X X X X X X"<<endl;
cout<<"_"<<endl;
}
if(a==5){
cout<<"X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X "<<endl;
cout<<" X "<<endl;
cout<<" X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X"<<endl;
}
if(a==6){
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X "<<endl;
cout<<" X "<<endl;
cout<<" X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<" X X X X X X X X "<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<" X X X X X X X X X X X X X X X X "<<endl;
cout<<"X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X"<<endl;
cout<<"_"<<endl;
}
if(a==-1){
break;
}
}
fclose(stdin);
fclose(stdout);
return 0;
}