#include <bits/stdc++.h>
int main() {
  int i, n;
  int fact = 1;
  int str[200000];
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d", &str[i]);
    if (str[i] >= 1 && str[i] <= 1e9)
      ;
  }
  for (i = 0; i < n; i++) {
    fact *= str[i];
  }
  if (fact % 4 == 0) {
    printf("Yes");
  } else
    printf("No");
  return 0;
}
