Soroban Fixed by yvl

gets.scan(/./){x=$&.to_i
a=[b=:===]+["<->"]*8<<b
a[2-x/5]=a[4+x%5]=" | "
a[3]=$'.size%4==1?"=*=":b
$*<<a}
puts$*.transpose.map &:join

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top