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