n=System.in.read()%8*3-2 0.upto(3*n){int p=[n-it+1,it+1-2*n,0].max()/3 q=n-2*p println' '*p+(it%3?'# '*q+'#':' ##'*q)}