<?php
error_reporting(0);
$stdin = file_get_contents('php://stdin');
$line = explode("\n",$stdin);
$fi = 0;
$cnt = 0;
$list = array();
$key = new stdclass();
foreach($line as $l) {
  if (strlen($l)==0) continue;
  if ($fi == 0) {
    $a = explode(" ",$l);
    $key->A = $a;
    $fi++;
    continue;
  }
  if ($fi > 0) {
    $a = explode(" ",$l);
    $key->X[] = $a;
  }
}
$N = $key->A[0];
$c1=0;
$c2=0;
$c4=0;
foreach($key->X[0] as $v) {
  if ((int)($v / 2)==0) $c1++;
  if ((int)($v / 2)==1) $c2++;
  if ((int)($v / 2)>=2) $c4++;
}
$flg = false;
if ($c2 == 0) {
  if ($c1 <= $c4+1) {
    $flg = true;
  }
  else {
    $flg = false;
  }
}
else {
  if ($c1 <= $b4) {
    $flg = true;
  }
  else {
    $flg = false;
  }
}
printf("%s\n",$flg?"Yes":"No");
