Find duplicates

EASY

Given an input string with numbers separated by a single space.

Find numbers that occur 2 or more times. Print it separated by a single space in any order.

Example #1

Input

3 2 5 2 1 3

Output

2 3

Solution