{ f=a=" " e=" " for(j=0;j++<$1;) { if(j<$1){ y=f x=e e }else x=y="\n" b=b"#"y a=a"##"x } print a e b b b b e b a }