No submissions yet

Submit your solution to display here.

Please login/signup to submit your solution.
Loading...

Input

7 2 3 1 10 4

Expected Output

12