gets f=proc{|x|"| #{split.map{|w|x ?("| "*9)[x,w.size]:w}*" | "} |"} puts" "+"_"*(/..$/=~a=f[]),f[0],a,f[1].tr(" ","_")