fork download
  1. puts"#{s="#{n=gets.strip}+#{n.size}+(#{n.scan(/\D*\d/).join'+'})"}=#{eval s}"
Success #stdin #stdout 0.05s 9648KB
stdin
-123
stdout
-123+4+(-1+2+3)=-115