i=input()\x0d c=eval('0x'+'1'*99)\x0d b=c<<1,-2\x0d a=~-c|b[0]<<2,1\x0d c=c,-3\x0d print'\n'.join(map(lambda s:''.join(map(lambda j:' #'[s[0]>>j&1],range(s[1]+i*4))),[a,b,c,c,c,b,a]))\x0d
Note that non-ascii characters in the above source code will be escaped (such as \x9f).