gets.tr!'*+','+*' r=/^\d+[+*]\d+/ (p$_[r]=(eval$&).to_s)while~r puts$_