a = 0
while int(input())>0:
    n = int(input())
    if n % 2 == 0:
        a = a + 1
print(a)

Embed on website

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