a=System.in.readLines() [_='#'*(l=a.max{it.count}.count+2),*['',*a,''].sum{[' '+it.padRight(l-1)]},_].any{println"#$it#"}