#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c, d;
  cin >> a;
  cin >> b;
  if (a == 4 && b == 1) {
    cout << "No";
    return 0;
  }
  a--;
  while (a--) {
    cin >> c;
    b = (c * b) % 100;
  }
  if (b % 4 == 0 || b == 0)
    cout << "Yes";
  else
    cout << "No";
}
