import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
//输入第一和第二个字符串
String str = input.next();
String str1 = input.nextLine();
//截取第二个字符串第一个空格之后的字符串
String str2 = str1.substring(1, str1.length());
//将第一和第二个字符串转换为字符数组
char[] ch = str.toCharArray();
char[] ch1 = str2.toCharArray();
int i = 0;
int count = 0;
//判断第一个字符串是不是整数字
while (i < ch.length) {
if (ch[i] >= 48 && ch[i] <= 57) {
count++;
}
i++;
}
//如果是整数字,判断范围
String number1;
if (count == ch.length) {
if (Integer.parseInt(str) >= 1 && Integer.parseInt(str) <= 1000) {
number1 = str;
} else {
number1 = "?";
}
} else {
number1 = "?";
}
//判断第二个数字是不是字符串
int j = 0;
int count1 = 0;
while (j < ch1.length) {
if (ch1[j] >= 48 && ch1[j] <= 57) {
count1++;
}
j++;
}
String number2;
//如果是整数字,判断范围
if (count1 == ch1.length) {
if (Integer.parseInt(str2) >= 1 && Integer.parseInt(str2) <= 1000) {
number2 = str2;
} else {
number2 = "?";
}
} else {
number2 = "?";
}
//对number1和number2接收的数据进行打印结果判断
if (number1 == "?") {
if (number2 == "?") {
System.out.println("? + ? = ?");
} else {
System.out.println("? " + "+ " + number2 + " = ?");
}
} else if (number1 != "?") {
if (number2 == "?") {
System.out.println(number1 + " +" + " ? " + "= ?");
} else {
int i1 = Integer.parseInt(number1);
int i2 = Integer.parseInt(number2);
System.out.println(i1 + " + " + i2 + " = " + (i1 + i2));
}
}
}
}
03-20
828
09-28
138