#include<iostream>
#include<algorithm>
#include<math.h>
#include<cmath>
#include<vector>
#include<stack>
#include<queue>
#include<functional>
#include<map>
#include<set>
#include <string>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);i++)
map<string, int> mp;
#define ll long long

int main() {
    int n;
    cin >> n;
    int ans=0;

    rep(i, n) {
        int a;
        cin >> a;
        if (a % 2 == 0)ans++;
    }
    cout << ans << endl;
    return 0;
}
