#include <iostream>
#include <vector>
using namespace std;



main ()

{

 int k = 0;

 int n;

   cin >> n;



   for (int i =0; i<n; i++)
   {
       int l; cin >> l; if (l%2==0) k++;
   }


   cout << k;


}