LearnPy Hub
← Lists problems
Medium

Remove Repeats, Keep Order

Read integers and print them with repeats removed, keeping the first appearance of each, on one line.

Input

Integers separated by spaces.

Output

One line.

Sample 1

Input
3 1 3 2 1
Output
3 1 2

Sample 2

Input
5 5 5
Output
5
solution.py
Output appears here
Remove Repeats, Keep Order · Python practice problem · LearnPy Hub