#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  int count0 = 0, count1 = 0;
  for (int i = 0; i < N; i++) {
    int p;
    cin >> p;
    if (p % 2 == 1) count1++;
  }
  count0 = N - count1;
  if ((N % 3 == 0 && count0 == N / 3) || count1 == 0) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
