n:=File standardInput readLine asNumber;a:=" ".." ##"repeated(n);b:="# "repeated(n-1).."# ";list(a," ",b,b,b,b," ",b,a)map(print)