Problem Description

Read n integers. Output the second largest distinct value, or NONE if not exists.

Input Format

First line n. Second line 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