House of Santa Claus by showyou

import sys\x0d
w=int(raw_input());p=sys.stdout.write;r=xrange;f=0;w=(w-1)*2/3+1\x0d
def j(t,c,f):return t if c else f\x0d
for i in [0,1]:\x0d
 e=w-i\x0d
 for y in r(w/2*(i<1)+1,e+1):\x0d
  f=j(w+1,f*i,y+1)\x0d
  [p("_ |/\\\n"[j(5,x==f,j(4,x==y,j(3,w-y==x,j(y<e,i<1 or x and x<w,2))))]) for x in r(f+1)]

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top