#include <stdio.h>
signed main()
{
int x, counter = 0;
do{
scanf("%i", &x);
if(x % 2 == 0)
counter++;
}while(x != 0);
printf("%i", counter-1);
return 0;
}
#include <stdio.h>
signed main()
{
int x, counter = 0;
do{
scanf("%i", &x);
if(x % 2 == 0)
counter++;
}while(x != 0);
printf("%i", counter-1);
return 0;
}