program sample
    implicit none
  
    integer(8) :: i,j,m,n,a,b,c
    integer(8),allocatable :: x(:),y(:)
  
    read(*,*) n
    allocate(x(n))
    read(*,*)x
    a=0
    b=0
    c=0
    do i=1,n
        if(mod(x(i),4)==0)then
            a=a+1
        elseif(mod(x(i),2)==0)then
            b=b+1
        else
            c=c+1
        end if
    end do
    if(c-a==1 .and. b==0)then
        write(*,*)'Yes'
    else if(c<=a)then
        write(*,*)'Yes'
    else
        write(*,*)'No'
    end if

   
    stop
end program sample
  

