_=list(open('../fd/0')) m=max(map(len,_))+3 for e in['',' ']+_+[' ','']:print e and"# %-*s#"%(m-3,e[:-1])or'#'*m