#includevoid main() { int x,a; a=0; while ( 1 ) { scanf("%d",&x); if ( x==0 ) break; if ( x%2 ) a++; } printf("%d\n",a);}
#include void main(){int i=1,n=0;while(i){scanf("%d",&i);if(i%2) n++;}printf("%d",n);}