아직 만들고 있는 페이지입니다.

이 페이지는 아직 만드는 중입니다. 보이는 내용은 바뀔 수 있습니다.

Equality

시간 제한1초메모리 제한1024 MB

요약
주어진 네 수 사이에 +, -, *, =를 넣어 참인 등식을 만들고, 불가능하면 EI SAA를 출력한다.
난이도

보통10점 중 5점

유형
완전 탐색, 구현, 수학
정답자
아직 제출이 없습니다

문제

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.

예제3

  1. 예제 1

    입력
    9?7?9?9
    
    예상 출력
    EI SAA
    
  2. 예제 2

    입력
    11?22?33?44
    
    예상 출력
    11=22+33-44
    
  3. 예제 3

    입력
    0?0?0?0
    
    예상 출력
    0+0=0+0