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