Second Largest Element

easy

Mô tả

Tìm phần tử lớn thứ hai trong mảng số nguyên.

Input Format

Dòng 1: Số nguyên n.
Dòng 2: n số nguyên.

Constraints

2 ≤ n ≤ 1000
1 ≤ arr[i] ≤ 10^6

Sample Input

6
10 5 8 20 15 12

Sample Output

15