Matches
Time Limit: 5000MS | Memory Limit: 65536K | |
Total Submissions: 183 | Accepted: 19 |
Description
One day Zidane “wrote”an equation on his desk and then went out. The equation was in “A + B = C” format. A, B, and C were numbers made up by matches. “+” and “=” were wrote in ink.
When Zidane came back after a lecture, he found out that somebody must have touched the equation and the equation became wrong! After promised a new toy, Zidane's son confessed that he had broken in the room and moved ONE match (not removed, that match was
still in the equation). Given the wrong equation on his desk, can you help Zidane find the original one?
Note: Both the wrong and original equations may have numbers with leading zeros. And it is guaranteed that only ONE possible original equation exists.
Input
Output
Sample Input
0 + 7 = 9 9 + 80 = 8
Sample Output
8 + 1 = 9 ***************** 8 + 00 = 8 *****************