#include <cstdlib>
#include <iostream>
using namespace std;
int f(int m,char *a){
if(a=="zero")m=m*10+0;
else if(a=="one")m=m*10+1;
else if(a=="two")m=m*10+2;
else if(a=="three")m=m*10+3;
else if(a=="four")m=m*10+4;
else if(a=="five")m=m*10+5;
else if(a=="six")m=m*10+6;
else if(a=="seven")m=m*10+7;
else if(a=="eight")m=m*10+8;
else if(a=="nine")m=m*10+9;
return m;
}
int main(int argc, char *argv[])
{
int a=0,c=0;
char s;
char b[7];
cin>>b;
while(b[0]!='+'){
a=f(a,b);
cin>>b;
}
cin>>b;
while(b[0]!='='){
c=f(a,b);
cin>>b;
}
//while(a!=0&&c!=0){
cout<<a+c<<endl;
/*cin>>b;
while(b[0]!='+'){
a=f(a,b);
cin>>b;
}
cin>>b;
while(b[0]!='='){
c=f(a,b);
cin>>b;
}
}*/
system("PAUSE");
return EXIT_SUCCESS;
}