시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB27171765.385%

문제

Given four integers, insert between them the signs +, -, *, or = to obtain a valid equality.

입력

The only line of input contains four integers separated by question marks (?). The integers are non-negative and no longer than four digits each.

출력

The only line of output should contain the equality where one of the question marks is replaced by the equals sign and each of the others by one of the arithmetic operations +, -, or *. If there are several possible solutions, output any one of them. If there are no solutions, output the text EI SAA.

예제 입력 1

9?7?9?9

예제 출력 1

EI SAA

예제 입력 2

11?22?33?44

예제 출력 2

11=22+33-44

예제 입력 3

0?0?0?0

예제 출력 3

0+0=0+0