if (a=gets)=~/^(-?\d0{2,}) (-?\d0{2,})$/ p $1.to_i*$2.to_i/10 else A,B=a.split.map &:to_i puts (A*B).abs>99999999 ? :E : A*B end