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

    auto cnt4 = a.count!(x => x % 4 == 0);
    auto cnt2 = a.count!(x => x % 4 != 0 && x % 2 == 0);

    if (cnt4 >= n / 2) "Yes".writeln;
    else if (cnt4 >= (n - cnt2 + 1) / 2) "Yes".writeln;
    else "No".writeln;
}

import std.stdio;
import std.string;
import std.array;
import std.conv;
import std.algorithm;
import std.range;
import std.math;
import std.numeric;
import std.container;
import std.typecons;
import std.ascii;
import std.uni;