00:00

Classroom

Given an array of integers, find the maximum sum of a pair of elements in the array.

For example

Input

[1, 2, 3, 4, 5]

Output

9
[2, 3, 4, 5, 1, 100]

Output

105