input = list(map(int, input().split()))
output = []
for i in input:
if i % 2 == 0:
output.append(str(i))
print(' '.join(output))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
input = list(map(int, input().split()))
output = []
for i in input:
if i % 2 == 0:
output.append(str(i))
print(' '.join(output))