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