eolymp
bolt
Try our new interface for solving problems
Problems

Easy Arithmetic

Easy Arithmetic

Eva is a third-grade elementary school student. She has just learned how to perform addition and subtraction of arbitrary-precision integers. Her homework is to evaluate some expressions. It is boring, so she decided to add a little trick to the homework. Eva wants to add some plus and minus signs to the expression to make its value as large as possible.

Input

The single line contains the original arithmetic expression. It contains only digits, plus (+) and minus (-) signs.

The original expression is correct, that is:

  • numbers have no leading zeroes;
  • there are no two consecutive signs;
  • the last character of the expression is a digit.

The length of the original expression does not exceed 1000 characters.

Output

Output a single line - the original expression with some plus and minus signs added. Output expression must satisfy the same correctness constraints as the original one. Its value must be as large as possible.

Time limit 1 second
Memory limit 128 MiB
Input example #1
10+20-30
Output example #1
10+20-3+0
Input example #2
-3-4-1
Output example #2
-3-4-1
Input example #3
+10
Output example #3
+10
Source 2015 ACM NEERC, Northern Subregion, October 24, Problem E