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.
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 .
Print the repeating elements of the array in a single line, separated by spaces.
Example 1
Example 4