using namespace std;
#include
int meas(int n){
int i=1;
while(n/10){
i++;
n=n/10;
}
return i+(i-1)/3;
}
int a,b;
//while(true){
//cout<<"put";
cin>>a>>b;
int c=a+b;
int check;
if(c>0)check=1;
else check=0;
c=abs(c);
int spa=meas(c);
//cout<<"spa"<<spa<<" c:"<<c<<endl;
char* res=new char[spa];
int i=spa-1;
while(i>=0){
if((spa-i)%4==0){
res[i]=',';
}else{
res[i]=c+'0';
c=c/10;
}
//cout<<i<<":"<<res[i]<<endl;
i--;
}
if(check==0)cout<<"-";
for(i=0;i
cout<<res[i];
}
}else{
cout<<c;
}
//system("pause");
//}
return 0;
}