Problem Description

Read n integers, find the second largest DISTINCT number. If it doesn't exist, output NONE.

Input Format

Line1: n. Line2: n integers.

Output Format

Second largest distinct or NONE.

Sample Test Case

Input:
6 5 1 5 3 2 4
Output:
4

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next