z=" ##";s=[z," #","#","#","#"," #",z];c=readline();for(x in s){for(i=1;i<c;i++)s[x]+=x%6?" #":" ##"}print(s.join("\n")+"\n")

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

download

return to the top page