#include <bits/stdc++.h>
using namespace std;
int n, sum = 0;
int arr[100005];
bool visit[100005];
int result[100005];
bool Judge(int arr[]) {
  for (int i = 0; i < sizeof(arr) - 1; ++i) {
    if (arr[i] * arr[i + 1] % 4 != 0) {
      return false;
    }
  }
  return true;
}
void DFS(int count) {
  if (count == n) {
    if (Judge(result)) {
      sum++;
      return;
    }
  }
  for (int i = 0; i < n; ++i) {
    if (visit[i] == 0) {
      visit[i] = 1;
      result[count] = arr[i];
      DFS(count + 1);
      visit[i] = 0;
    }
  }
}
int main() {
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> arr[i];
  }
  DFS(0);
  if (sum) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
