x=input() i=3*x+2 while i:c=i%-~x>0;print"+|"[c].join(["- "[c]*x]*3);i-=1
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page