Answer:
We have the following code in Python below with appropriate comments
Step-by-step explanation:
values = input().split() #splitting the standard input
lst = [] #creating an empty list
for number in values:
if values.count(number) > 1: #conditional statement for only considering
#numbers which occur more than once
lst.append(number) #adding the number into the empty list
print(' '.join(lst)) #displays the result