#include <iostream>
using namespace std;
int func(string s)
{
string temp;
for(int i=0;i<s.length();i++)
{
if(s[i]!=','&&s[i]!='-')
{
temp+=s[i];
}
}
return s[0]=='-'?-stoi(temp):stoi(temp);
}
int main() {
string a,b;
while(cin>>a>>b)
{
cout<<func(a)+func(b)<<endl;
}
return 0;
}
// 64 位输出请用 printf("%lld")



京公网安备 11010502036488号