#include
#include
using namespace std;
char tmp[6000][3000];
void draw(int n){
for (int i = 0; i <(2 <<(n - 1)); i++){
int end = 0;
for ( int k = ( 2 <1; ; k --){
if (tmp[i][k] == '\\') {
end = k; break;
}
}
for ( int j = 0; j <= end; j++){
cout << tmp[i][j];
}
cout << endl;
}
cout << endl;
return;
}
void reduction( int x, int y, int n ){
if ( n == 1){
tmp[x][y] = tmp[x - 1][y + 1] = '/';
tmp[x][y + 3] = tmp[x - 1][y + 2] = '\\';
tmp[x][y + 1] = tmp[x][y + 2] = '_';
return;
}
int size = 1 <<( n - 1);
reduction( x - size , y + size , n - 1);
reduction( x , y , n - 1);
reduction( x , y + size + size, n - 1);
}
int main(){
int n = 0;
while ( cin >> n && n != 0 ){
memset ( tmp, ' ' ,sizeof(tmp));
reduction( (1 <1 , 0, n );
draw ( n );
}
return 0;
}