import numpy as np
n = int(input())

a = np.array([int(i) for i in input().split()])

def distri(num):
    res = np.array([0,0,0])
    if num%4==0:
        res = res + np.array([1,0,0])
        return res
    elif num%2 == 0:
        res = res + np.array([0,1,0])
        return res
    else:
        res = res + np.array([0,0,1])
        return res
    
cout420 = np.array([0,0,0])

for i in a:
    cour420 = cout420 + distri(i)
if cout420[1] ==0:
    assign2 = 0
else:
    assign2 = 1
    
non4 = cout420[-1] + assign2

if non4 <= cout420[0]:
    print("Yes")
else:
    print("No")