#include<bits/stdc++.h>
#define LL long long
using namespace std;
int main()
{
string a,b;
int fa=0,fb=0; int sa=0;int sb=0;
cin>>a;
getchar();
getline(cin,b);
for(int i=0;i<a.length();i++){
if(a[i]<'0'||a[i]>'9')
fa=1;
if(fa==0){
sa=(a[i]-'0')+sa*10;
if(sa>1000||sa==0)fa=1;
}
}
for(int i=0;i<b.length();i++){
if(b[i]<'0'||b[i]>'9')
fb=1;
if(fb==0){
sb=(b[i]-'0')+sb*10;
if(sb>1000||sb==0)fb=1;
}
}
if(fa&&fb)cout<<"? + ? = ?";
else if(fa)printf("? + %d = ?",sb);
else if(fb)printf("%d + ? = ?",sa);
else printf("%d + %d = %d",sa,sb,sa+sb);
return 0;
}
08-06
272
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)