#include <iostream>
using namespace std;
int main()
{
int a;
int b;
cin >> a >> b;
int c = a + b;
if (c <= 0)
{
if (c >= -999)
cout << c;
else if (c >= -999999)
{
cout << c / 1000;
cout << ',';
int x, y, z;
x = c % 10;
y = (c / 10) % 10;
z = (c / 100) % 10;
cout << -z << -y << -x;
}
else
{
cout << c / 1000000;
cout << ',';
int x, y, z;
x = (c / 1000) % 10;
y = (c / 10000) % 10;
z = (c / 100000) % 10;
cout << -z << -y << -x;
cout << ',';
x = c % 10;
y = (c / 10) % 10;
z = (c / 100) % 10;
cout << -z << -y << -x;
}
}
else
{
if (c < 1000)
cout << c;
else if (c < 1000000)
{
cout << c / 1000;
cout << ',';
int x, y, z;
x = c % 10;
y = (c / 10) % 10;
z = (c / 100) % 10;
cout << z << y << x;
}
else
{
cout << c / 1000000;
cout << ',';
int x, y, z;
x = (c / 1000) % 10;
y = (c / 10000) % 10;
z = (c / 100000) % 10;
cout << z << y << x;
cout << ",";
x = c % 10;
y = (c / 10) % 10;
z = (c / 100) % 10;
cout << z << y << x;
}
}
return 0;
}