i=input()\x0d r=range\x0d l=[28,34,0,65,93]\x0d s=[0]+r(1,5)*27\x0d p=[1,-2,-3,-3,-3,-2,1]\x0d print'\n'.join(map(lambda y:''.join(map(lambda b:' #'[l[s[b]]>>y&1],r(i*4+p[y]))),r(7)))\x0d
Note that non-ascii characters in the above source code will be escaped (such as \x9f).