set n [gets stdin];set a " ";append a [string repe " ##" $n];set b "#";append b [string repe " #" [incr n -1]];puts "$a $b $b $b $b $b $a"