while 1: \x09a=input() \x09print" "*a+"__"*a;r=range(a) \x09for i in r:print" "*(a-i-1)+"/"+"_ "[i<a-1]*(a*2-1)+"/"+" "*i*2+"\\" \x09for i in r:print" "*i+"\\"+"_ "[i<a-1]*(a*2-1)+"\\"+" "*(a-i-1)*2+"/"
Note that non-ascii characters in the above source code will be escaped (such as \x9f).