//
// main.cpp
// test
//
// Created by Jacky Roth on 2019/2/22.
// Copyright © 2019 Jacky Roth. All rights reserved.
//
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <string>
#include <algorithm>
using namespace std;
string get_num(int x){
string res="";
int count=0;
do{
res+=x%10+'0';
x/=10;
count++;
if (count%3==0) {
res+=',';
}
}while (x!=0);
reverse(res.begin(), res.end());
if (res[0]==',') {
res.erase(res.begin());
}
return res;
}
int main(int argc, const char * argv[]) {
int a,b;
scanf("%d%d",&a,&b);
int c=a+b;
if (c<0) {
c*=-1;
printf("-");
}
string res=get_num(c);
cout<<res;
return 0;
}