This is a straightforward problem. You will be given an incorrect mathematical sum expression like $A+B=C$
. It has to be changed and printed so that it becomes a correct mathematical sum expression like $A'+B'=C'$
. But the condition is, $A+B+C$
and $A'+B'+C'$
have to be equal.
In the one-line input, the incorrect mathematical sum expression will be given as $\texttt{A+B=C}$
($0 \le A, B \lt C \le 10^8$
).
In the one-line output, you have to print the changed expression according to the condition. If more than one correct expression occurs, you can print any of them. But if there is no expression according to the condition, then you have to print $\texttt{Impossible}$
.
Input | Output |
---|---|
2+1=5 | 2+2=4 |
0+4=4, 4+0=4, 3+1=4, 1+3=4 expressions are also acceptable. |
Input | Output |
---|---|
1+1=6 | 2+2=4 |
Input | Output |
---|---|
2+2=5 | Impossible |
In this case, no correct expression can be formed. |
There should be no space before or after the '+' or '=' sign.