str=STDIN.gets.chomp /^[+-]?\d+/=~str s1=$& s2=$' if s2[0]=="-" then s3="+"<