Python:
N = list(map(int, input().split(' ')))
print(*N)
even = []
odd = []
for number in N:
if number % 2 == 0:
even.append(number)
else:
odd.append(number)
print(*even)
print(*odd)
Python:
N = list(map(int, input().split(' ')))
print(*N)
even = []
odd = []
for number in N:
if number % 2 == 0:
even.append(number)
else:
odd.append(number)
print(*even)
print(*odd)