num = list(map(int,input().split()))
a = []
for i in num:
    if i%3 == 0:
        a.append(i)
print(a)


print(num)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: