#include<iostream>
#include<string>//往事不堪回首
using namespace std;
int *int_num;
bool is_integer(string s){
int num=0;
if(s.size()>4) return false;
else{
for(int i=0;s[i]!='0';i++){
num*=10;
if(s[i]>='0'&&s[i]<='9')
num+=s[i]-'0';
else return false;
}
if(num<1||num>1000) return false;
else{
*int_num=num;
return true;
}
}
}
int main(){
int s1,s2;
string str1=" ",str2=" ";
getline(cin,str1,' ');
getline(cin,str2);
if(is_integer(str1)){
s1=*int_num;
cout<<*int_num<<" + ";
}
else
cout<<"? + ";
if(is_integer(str2)){
s2=*int_num;
cout<<*int_num<<" = "<<s1+s2;
}
else
cout<<"? = ?";
cout<<endl;
return 0;
}
#include<string>//往事不堪回首
using namespace std;
int *int_num;
bool is_integer(string s){
int num=0;
if(s.size()>4) return false;
else{
for(int i=0;s[i]!='0';i++){
num*=10;
if(s[i]>='0'&&s[i]<='9')
num+=s[i]-'0';
else return false;
}
if(num<1||num>1000) return false;
else{
*int_num=num;
return true;
}
}
}
int main(){
int s1,s2;
string str1=" ",str2=" ";
getline(cin,str1,' ');
getline(cin,str2);
if(is_integer(str1)){
s1=*int_num;
cout<<*int_num<<" + ";
}
else
cout<<"? + ";
if(is_integer(str2)){
s2=*int_num;
cout<<*int_num<<" = "<<s1+s2;
}
else
cout<<"? = ?";
cout<<endl;
return 0;
}


