#include<iostream>
using namespace std;
int n,a[1000][1000]={1};
int main()
{
cin>>n;
for(int i=0;i<1<<n;++i)
{
for(int j=1;j<(1<<n)-i;j++) cout<<" ";
for(int j=i;j>=0;j--)
if(j==0||j==i)
a[i][j]=1;
else
a[i][j]=a[i-1][j]^a[i-1][j-1];
if(i%2==0)
for(int j=0;j<=i;j++)
cout<<(a[i][j]?"/\\":" ");//奇数行 两个空格
else
for(int j=0;j<=i;j+=2)
cout<<(a[i][j]?"/__\\":" ");//偶数行 4个空格
cout<<endl;
}
return 0;
}
111/\
/__\
/\ /\
/__\/__\
/\
/__\
/\ /\
/__\/__\
/\ /\
/__\ /__\
/\ /\ /\ /\
/__\/__\/__\/__\