n=gets.to_i a=" ##"*n+$/ b="#"+" #"*~-n+$/ $><<" %s"*4%[a,b*4,b,a]

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

download

return top