Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = [i for i in input().split()]
- b =[]
- for i in a:
- if a.count(i) > 1:
- while a.count(i) != 1:
- a.remove(i)
- b.append(i)
- b.sort()
- for i in range(len(b)):
- print(b[i], end =" ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement