#include <iostream>
#include <vector>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
int res = a + b;
if (res < 0) {
cout << "-";
res = -res;
}
if (res == 0) {
cout << 0 << endl;
return 0;
}
int flag = true;
vector<int> res_vec;
while (res > 0) {
res_vec.push_back(res % 1000);
res = res / 1000;
}
int first = true;
for (auto it = res_vec.rbegin(); it!= res_vec.rend(); it++) {
if (first == true) {
printf("%d", *it);
first = false;
} else {
printf(",%.03d", *it);
}
}
cout << endl;
return 0;
}