#include <stdio.h>
int main()
{
int a[11];
while(scanf("%d%d%d%d%d%d%d%d%d%d",&a[0],&a[1],&a[2],&a[3],&a[4],&a[5],&a[6],&a[7],&a[8],&a[9])!=EOF)
{
int i,num;
num=0;
for(i=0;i<10;i++)
if(a[i]%2!=0)
num++;
printf("%d
",num);
}
return 0;
}