//
// Created by CyIce on 2021/2/25.
//
#include <stdio.h>
#include <stack>
using namespace std;
stack<int> S;
void toString(int n) {
int temp = n < 0 ? -n : n;
if (n == 0) S.push(0);
while (temp > 0) {
S.push(temp % 10);
temp /= 10;
}
}
int main() {
int a, b, sum;
scanf("%d%d", &a, &b);
sum = a + b;
toString(sum);
if (sum < 0) printf("-");
while (!S.empty()) {
printf("%d", S.top());
S.pop();
if (!S.empty() && S.size() % 3 == 0) printf(",");
}
printf("\n");
return 0;
}