import std.algorithm,
       std.string,
       std.array,
       std.range,
       std.stdio,
       std.conv;

void main() {
  int n = readln.chomp.to!int;
  int[] a = readln.chomp.split.to!(int[]);
  int m1,
      m2,
      m4;
  bool flag;

  foreach (ai; a) {
    if (ai % 4 == 0) {
      m4++;
    } else if (ai % 2 == 0) {
      m2++;
    } else {
      m1++;
    }
  }

  if (m2) {
    flag = (m1 <= m4);
  } else {
    flag = (m1 <= m4 + 1);
  }

  writeln(flag ? "Yes" : "No");
}
