include [HTML_REMOVED]
using namespace std;
int sw(string a) {
if (a == “zero”) return 0;
else if (a == “one”) return 1;
else if (a == “two”) return 2;
else if (a == “three”) return 3;
else if (a == “four”) return 4;
else if (a == “five”) return 5;
else if (a == “six”) return 6;
else if (a == “seven”) return 7;
else if (a == “eight”) return 8;
else if (a == “nine”) return 9;
else return -1; // 如果输入无效,返回 -1
}
int main()
{
string s;
vector[HTML_REMOVED] num;
while(getline(cin,s))
{
int A=0,B=0;
string tmpa,tmpb;
stringstream ssin(s);
while(ssin>>tmpa,tmpa!=”+” &&tmpa!=”=”)
{
A=A*10+sw(tmpa); //将字符转化为数字
}
while(ssin>>tmpb,tmpb!="+"&&tmpb!="=")
{
B=B*10+sw(tmpb); //将字符转化为数字
}
if(A+B) num.push_back(A+B);
else{
break;
}
}
for(int i=0;i<num.size();i++) cout<<num[i]<<endl;
return 0;
}