AtCoder Beginner Contest 079
C
Train Ticket
AtCoder
⌀ 331
原题
← BD →
翻译中…

Problem Statement

翻译中…

Sitting in a station waiting room, Joisino is gazing at her train ticket.

翻译中…

The ticket is numbered with four digits $A$, $B$, $C$ and $D$ in this order, each between $0$ and $9$ (inclusive).

翻译中…

In the formula $A$ $op1$ $B$ $op2$ $C$ $op3$ $D$ $=$ $7$, replace each of the symbols $op1$, $op2$ and $op3$ with + or - so that the formula holds.

翻译中…

The given input guarantees that there is a solution. If there are multiple solutions, any of them will be accepted.

翻译中…

Constraints

翻译中…
  • $0≤A,B,C,D≤9$
  • All input values are integers.
  • It is guaranteed that there is a solution.
翻译中…

Input

翻译中…

Input is given from Standard Input in the following format:

翻译中…

ABCD

翻译中…

Output

翻译中…

Print the formula you made, including the part =7.

翻译中…

Use the signs + and -.

翻译中…

Do not print a space between a digit and a sign.

翻译中…

样例

Input #1
1222
Output #1
1+2+2+2=7
This is the only valid solution.
Input #2
0290
Output #2
0-2+9+0=7
$0 - 2 + 9 - 0 = 7$ is also a valid solution.
Input #3
3242
Output #3
3+2+4-2=7
题目信息
题号
abc079_c
时间限制
2 s
内存限制
256 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。