#include<iostream>
#include<cstdlib>
using namespace std;
int main(){
int a,b,c,stack[100],p=0;
cin>>a>>b;
c=a+b;
if(abs(c)<10)
cout<<c;
else{
do{
a=abs(c%10);
stack[++p]=a;
c=c/10;
}while(abs(c)>9);
if(c!=0){
cout<<c;
}
while(p>0){
if(p%3==0){
cout<<","<<stack[p--];
cout<<stack[p--];
cout<<stack[p--];
}
else{
cout<<stack[p--];
}
}
}
return 0;
}
/*这道题目没有考虑到负数求%,WA好多次。。*/