import core.bitop;
import std.algorithm;
import std.array;
import std.ascii;
import std.container;
import std.conv;
import std.format;
import std.math;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

void main()
{
  int n = readln.chomp.to!int;
  int[] a = readln.chomp.split.map!(to!int).array;

  int one = 0;
  int four = 0;
  foreach (v; a) {
    if (v % 4 == 0) {
      ++four;
      continue;
    }
    if (v % 2 == 0) {
      continue;
    }
    ++one;
  }
  writeln = one <= four ? "Yes" : "No";
}
