Heaps#10951

Heaps

1.2 seconds
256 megabytes
Very easy

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.

Input

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).

Output

Print the largest integer that can be obtained as the sum of two different elements.

Examples

Input: "' 5 1 2 3 4 5 "'

Output: "' 9 "'

Example 1

Loading
Loading

Note

In the example above, the largest sum is 4 + 5 = 9.