While walking in the park, you stumbled upon the number .
You can perform the following operation, but only once. You can choose any cut position (including one that results in one of the parts having leading zeros) and split the number into two non-empty parts, forming the numbers and .
You need to find the maximum value of a + b from all possible splits.
The first line contains a single integer (10 \le n < 10^{2 \cdot 10^5}). It is guaranteed that the number does not contain leading zeros.
Note that the length of the representation of the number is from to 2\cdot10^5 digits.
You need to output a single integer — the maximum possible value of a + b from all possible splits.
Example 1
Example 2
In the first test case, the maximum value is achieved by splitting a = 1 and b = 7031212.
In the second test case, the maximum value is achieved by splitting a = 1 and b = 923456789098765432.
Subtask ( points) : (n < 10^{18})
Subtask ( points) : No additional constraints