IntermediateRating 1100
Everything That Repeats
Each number is between 1 and n and appears once or twice. Print the numbers that appear twice in increasing order, or NONE.
Input
n, then n integers.
Output
One line.
Sample 1
Input
8 4 3 2 7 8 2 3 1
Output
2 3
Sample 2
Input
3 1 2 3
Output
NONE
Output appears here