import java.util.*;public class Main
{public static void main
(String[]args
){System.
out.
print((new P
()).
b(Integer.
parseInt((new Scanner
(System.
in)).
next())).
s());}}class P
{S p
;public S b
(int w
){p
=new S
(w
);int j
=-1,k
=-1,f
=(w
%2
)*2,t,y,x
;for(x
=0;x
<w
/2-2+w
%2
;x
++){t
=r
();y
=r
();if(j
==t
|k
==y
|t
==y
){x
--;continue;}g
(t,
true,
2);g
(y,
false,
2-f
);f
=0;j
=t
;k
=y
;}while(1>0){t
=r
();y
=r
();if(w
<4&t
<1&y
<1)continue;if(j
==t
|k
==y
|t
==y
|j
==y
){x
--;continue;}g
(t,
true,
3);g
(y,
false,
3+(w
<4?0:(w
%2
)*2));break;}return p
;}void g
(int w,
boolean b,
int h
){if(w
<1)p.
u(h,b
);else if(w
<2)p.
r(h,b
);else p.
l(h,b
);}int r
(){return (int)(Math.
random()*3);}}class S
{List
<List
<Character
>>q,a
;int h,s,u,o,e,r,b,t,g,n,m,x,y
;public S
(int d
){s
=d
;h
=s
+s
%2
-1;u
=h
;o
=h
;b
=s
>3?(int)(Math.
random()*3*s
)+1:0;q
=new ArrayList
<List
<Character
>>();a
=new ArrayList
<List
<Character
>>();for(x
=0;x
<h
;x
++){q.
add(new ArrayList
<Character
>());a.
add(new ArrayList
<Character
>());}i
(0,q
);i
(0,a
);e
=1;r
=1;t
=0;g
=0;n
=0;m
=0;}public String s
(){String p
="";for(x
=0;x
<e
+b
+r
;x
++)p
+=x
>t
+(s
<4?1:0)&x
<e
+b
+g
?'_':' ';p
+="\n";for(y
=0;y
<h
;y
++){for(x
=0;x
<e
;x
++)p
+=y
>h
-2&x
>n
?'_':q.
get(y
).
get(x
);for(x
=0;x
<b
;x
++)p
+=y
>h
-2?'_':' ';for(x
=0;x
<r
;x
++)p
+=y
>h
-2&x
<m
-1?'_':a.
get(y
).
get(x
);p
+="\n";}return p
;}void i
(int i,List
<List
<Character
>>z
){for(List
<Character
>l
:z
)l.
add(i,
' ');if(z
==q
){e
++;if(i
<=t
)t
++;if(i
<=n
)n
++;}else{r
++;if(i
<=g
)g
++;if(i
<=m
)m
++;}}public void u
(int v,
boolean i
){if(i
){u
-=v
;for(y
=0;y
<v
;)q.
get(u
+y
++).
set(t,
'|');}else{o
-=v
;for(y
=0;y
<v
;)a.
get(o
+y
++).
set(g,
'|');}}public void l
(int v,
boolean i
){if(i
){x
=v
-t
;while(x
-->0)i
(0,q
);t
=x
>0?0:t
-v
;u
-=v
;for(y
=0;y
<v
;)q.
get(y
+u
).
set(t
+y
++,
'\\');}else{x
=v
-g
;while(x
-->0)i
(0,a
);g
=x
>0?0:g
-v
;o
-=v
;for(y
=0;y
<v
;)a.
get(y
+o
).
set(g
+y
++,
'\\');}}public void r
(int v,
boolean i
){if(i
){t
+=v
;y
=t
;while(e
<=y
)i
(e,q
);t
=y
-1;u
-=v
;for(y
=0;y
<v
;)q.
get(u
+y
).
set(t
-y
++,
'/');}else{g
+=v
;y
=g
;while(r
<=y
)i
(r,a
);g
=v
<1?g
:y
-1;o
-=v
;for(y
=0;y
<v
;)a.
get(o
+y
).
set(g
-y
++,
'/');}}}
aW1wb3J0IGphdmEudXRpbC4qO3B1YmxpYyBjbGFzcyBNYWlue3B1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdYXJncyl7U3lzdGVtLm91dC5wcmludCgobmV3IFAoKSkuYihJbnRlZ2VyLnBhcnNlSW50KChuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pKS5uZXh0KCkpKS5zKCkpO319Y2xhc3MgUHtTIHA7cHVibGljIFMgYihpbnQgdyl7cD1uZXcgUyh3KTtpbnQgaj0tMSxrPS0xLGY9KHclMikqMix0LHkseDtmb3IoeD0wO3g8dy8yLTIrdyUyO3grKyl7dD1yKCk7eT1yKCk7aWYoaj09dHxrPT15fHQ9PXkpe3gtLTtjb250aW51ZTt9Zyh0LHRydWUsMik7Zyh5LGZhbHNlLDItZik7Zj0wO2o9dDtrPXk7fXdoaWxlKDE+MCl7dD1yKCk7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