#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
int res=a+b;
string s=to_string(res);
int cnt=1;
for(int i=s.size()-1;i>=0;i--){
if(cnt%3==0 && i-1>=0 &&s[i-1]!='-'){
s=s.substr(0,i)+","+s.substr(i);
// i--;
}
cnt++;
}
cout<<s;
return 0;
}
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/244743.html