The cows just learned to add and subtract. They've written down an expression containing N terms (1 ≤ N ≤ 10) such as the following:
1 + 4 - 2 - 1 + 10 - 6
Bessie (the smart cow) realizes that this expression can evaluate to different numbers depending on how it is parenthesized. Help her determine the maximum possible number to which it can evaluate.
1 + 4 - (2 - (1 + 10) - 6) = 20