#include <cstdio>
#include <cstring>
int num[10];
int main(){
int a, b, sum;
scanf("%d %d", &a, &b);
sum = a + b;
if(sum < 0){
printf("-");
sum = -sum;
}
int len = 0;
// sum为0时特殊处理
if(sum == 0)
num[len++] = 0;
while(sum){
num[len++] = sum % 10;
sum /= 10;
}
for(int k = len-1; k >= 0; k--){
printf("%d", num[k]);
if(k > 0 && k % 3 == 0)
printf(",");
}
return 0;
}