Fashion Elements#8972

Fashion Elements

1 second
64 megabytes
Very hard

In the given array of integers, your task is to output only the elements that appear more than once. Numbers that appear only once should not be included, and from several identical elements, select only the first occurrence of each repeating element. If no such elements exist, output the message NO.

Input

The first line contains the integer , representing the number of elements in the array. The second line contains integers, each with an absolute value not exceeding .

Output

Print the repeating elements of the array in a single line, separated by spaces.

Examples

Example 1

Loading
Loading

Example 4

Loading
Loading