<?php
  $n = trim(fgets(STDIN));
  $a = explode(" ", trim(fgets(STDIN)));
  $count = 0;
  for($i=0; $i<$n; $i++){
      if($a[$i]%4 == 0){
          $count++;
      }else{
          if($a[$i]%2 == 0 && $a[$i+1]%2 == 0 && $i<$n-1){
              if(isset($a[$i+2])){
                  if($a[$i+2]%4 == 0){
                      $count++;
                  }
              }else{
                  $count++;
              }
          }
      }
  }
  echo $count >= (int)($n/2) ? "Yes" : "No";