Problem D
Jednakost
While browsing a math book, Mirko found a strange equation
of the form
Write a program that inserts the smallest number of addition operations on the left side to make the equation correct. The numbers in the corrected equation may contain arbitrary amounts of leading zeros.
Input
The first line contains the equation in the form
Output
Output the corrected equation. If there are multiple solutions, output any of them.
Sample Input 1 | Sample Output 1 |
---|---|
143175=120 |
14+31+75=120 |
Sample Input 2 | Sample Output 2 |
---|---|
5025=30 |
5+025=30 |
Sample Input 3 | Sample Output 3 |
---|---|
999899=125 |
9+9+9+89+9=125 |