#include <iostream>
#include <string>
using namespace std;
int main()
{
long a, b;
cin >> a >> b;
long sum = a + b;
if(sum < 0) {cout << '-'; sum = - sum;}
string s = to_string(sum);
for(int i = 0; i < s.length(); i++){
cout << s[i];
if((len - i - 1) % 3 == 0 && i != len - 1) cout << ',';
}
cout << endl;
return 0;
}