#include<iostream>
#include<algorithm>
#include<sstream>
using namespace std;
int a,b;
int main()
{
cin>>a>>b;
a+=b;
string c;
stringstream s;
s<<a;
s>>c;
if(c[0]=='-') {cout<<'-';c.erase(0,1);}
int j=c.size()%3;
for(int i=0;i<c.size();i++)
{
if(i&&(i%3)==j) cout<<',';
cout<<c[i];
}
return 0;
}