Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = list(map(int, input().split()))
- v = []
- mi = min(a)
- ch = -1
- if mi % 2 == 0:
- ch = 1
- else:
- ch = 0
- for i in a:
- if ch == 1:
- if i % 2 == 0:
- v.append(i)
- else:
- if i % 2 != 0:
- v.append(i)
- v = list(set(v))
- print(*v)
Advertisement
Add Comment
Please, Sign In to add comment