#include <bits/stdc++.h> using namespace std; int main(){ string s1,s2; cin>>s1>>s2; int len1 = s1.size(),len2 = s2.size(); int i1=0,i2=0,i; bool flag1 = false,flag2 = false; //默认为正数 for(i = 0; i <len1; i++){ if(s1[i] == '-') flag1 = true; else if(s1[i] == ',') continue; else i1 = i1*10 + s1[i] - '0'; } for(i = 0; i <len2; i++){ if(s2[i] == '-') flag2 = true; else if(s2[i] == ',') continue; else i2 = i2*10 + s2[i] - '0'; } // cout<<i1<<"\t"<<i2; if(flag1) i1 = -i1; if(flag2) i2 = -i2; // cout<<i1<<"\t"<<i2<<endl; cout<<i1+i2; }