#include<bits/stdc++.h>
using namespace std;
int a[8];
signed main(){
a[1]=0;
int c,d;
cin>>c>>d;
int tot=c+d;
if(tot<0) cout<<"-";
tot=abs(tot);
int i=1;
while(tot){
a[i]=tot%10;
tot/=10;
if(tot!=0) i++;
}
for(;i>0;i--){
cout<<a[i];
if(i==7||i==4) cout<<",";
}
return 0;
}