暴力截断
#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
const string num[10]={"zero","one","two","three","four","five","six","seven","eight","nine"};
int getnum(string s){
for(int i=0;i<10;i++){
if(s==num[i]) return i;
}
return -1;
}
int input(){
int res=0;
string s;
while(cin>>s&&s!="+"&&s!="="){
res=res*10+getnum(s);
}
return res;
}
int main(){
while(1){
int a=input(),b=input();
if(a+b>0) cout<<a+b<<endl;
else break;
}
return 0;
}