#include <bits/stdc++.h>
using namespace std;

#define int long long

signed main() {
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  cout << fixed << setprecision(12);

  int N;
  cin >> N;

  vector<int> A(N);
  int cnt = 0;
  for ( int i = 0; i < N; i++ ) {
    int a;
    cin >> a;
    cnt += !(a%2);
  }

  cout << cnt << endl;
  
  return 0;
}

