LearnPy Hub
← Tuples & Sets problems
Medium

Values That Repeat

Read integers and print, in increasing order, the values that appear more than once (or none), using two sets: seen and repeated.

Input

Integers separated by spaces.

Output

One line.

Sample 1

Input
1 2 3 2 1 5
Output
1 2

Sample 2

Input
1 2 3
Output
none
solution.py
Output appears here
Values That Repeat · Python practice problem · LearnPy Hub