Write a program that takes as input a list of numbers in one line and displays on the screen in one line the values that occur in it more than once.
Input: 4 8 0 3 4 2 0 3 (after sort: 0 0 2 3 3 4 4 8)
Output: 0 3 4
arr = list(map(int, input().split()))
arr.sort()
arr1 = list(dict.fromkeys(arr))
print(arr1)