#include <stdio.h>int main(){ int i,n,a=0,k; scanf("%d",&n); for(i=1;i<=n;i++) { scanf("%d",&k); if(k%2==0) { a++; } } printf("%d",a); return 0;}