Fashion Elements#8972

Fashion Elements

1 segundo
64 megabytes
Muy difícil

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.

Entrada

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 .

Salida

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

Ejemplos

Ejemplo 1

Loading
Loading

Ejemplo 4

Loading
Loading