#include <bits/stdc++.h>
int main() {
  int n, a[100001], b[100001];
  std::cin >> n;
  int adj[5];
  int sum = 0;
  for (int i = 0; i < n; ++i) {
    std::cin >> a[i];
    int cnt = 0;
    while (a[i] % 2 == 0) {
      cnt++;
      a[i] /= 2;
    }
    if (cnt > 2) cnt = 2;
    b[i] = cnt;
    adj[cnt]++;
    sum += cnt;
  }
  for (int i = 0; i < 3; ++i) {
  }
  while (adj[2] > 0) {
    adj[2]--;
    for (int i = 0; i < 2; ++i) {
      if (adj[0] > 0)
        adj[0]--;
      else
        adj[1]--;
    }
    if (adj[1] < 0 || (adj[1] <= 0 && adj[0] <= 0) || adj[2] <= 0) {
      break;
    }
  }
  for (int i = 0; i < 3; ++i) {
  }
  if (adj[1] <= 0 && adj[0] <= 0)
    std::cout << "Yes" << std::endl;
  else
    std::cout << "No" << std::endl;
  return 0;
}
