Equality | 프로그래밍의 벗 PivotOJ
PivotOJ

Equality

시간 제한: 1000ms메모리 제한: 1024MB출처: EIO 2018-19 prelimBOJ 29941

문제

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
출력
EI SAA

예제 2

입력
11?22?33?44
출력
11=22+33-44

예제 3

입력
0?0?0?0
출력
0+0=0+0
코드를 제출하려면 로그인하세요.