Given a sequence of numbers. From these numbers, we want to choose any two different elements and find their sum. Our goal is to determine the largest of these sums.
The first line contains an integer (2 \leq n \leq 1000) — the length of the sequence.
The second line contains integers separated by spaces. These numbers are given as a_1, a_2, \ldots, a_n (-10^6 \leq a_i \leq 10^6).
Print the largest integer that can be obtained as the sum of two different elements.
Input: "' 5 1 2 3 4 5 "'
Output: "' 9 "'
Example 1
In the example above, the largest sum is 4 + 5 = 9.