Problem Description

Read n words in order. Output the first word that appears exactly once. If none, output NONE.

Input Format

First line n. Next n lines: word.

Output Format

One word or NONE.

Sample Test Case

Input:
5 bat apple bat cat apple
Output:
cat

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next