n=int(input()) i=(n//2)*' ' s=i+' \\ /\n'+i[:-1]+'-->*<--\n '+i+'/_\\\n' for j in range(n): \x09i=(i,i[:-1])[j%2] \x09m=j+(j%2)+3 \x09s+=i+'/'+(('_'+('\\','/')[j%2])*m)[:m]+'\\\n' print(s+' '*(n//2)+'[___]')
Note that non-ascii characters in the above source code will be escaped (such as \x9f).