#include<iostream>
using namespace std;
const int maxn = 110; //数组下标不能设太大会溢出,一般设在250000以内
int main() {
int a, b;
int ans[maxn] = {0};
cin >> a >> b;
int temp = a + b;
if (temp < 0) {
cout << '-';
temp = -temp;
}
int num = 0;
while (temp != 0) {
ans[num++] = temp % 10;
temp /= 10;
}
while (num % 3 != 0)
num++;
for (int i = num - 1; i >= 0; i--) {
if ((i + 1) % 3 == 0&&i!=num-1)
cout << ',';
cout << ans[i];
}
system("pause");
return 0;
}