<?php
    fscanf(STDIN, "%d", $total);
    $input = trim(fgets(STDIN));
    $numbers = explode(" ", $input);
    $two = 0;
    $four = 0;
    for ($i = 0; $i < $total; $i++) {
        if ($numbers[$i] % 4) {
            if ($numbers[$i] % 2) {
                $two++;
            } else {
                continue;
            }
        } else {
            $four++;
        }
    }
    $output = "No\n";
    if (($two + ($four * 2)) >= $total) {$output = "Yes\n";}
	echo $output;
?>
