N = int(input())
a = list(map(int,input().split()))
c_4 = 0
c_2 = 0
c_O = 0
for e in a:
    if e % 4 == 0:
        c_4 += 1
    elif e % 2 == 0:
        c_2 += 1
    else:
        c_O += 1
if c_2 == 1:
    c_2 = 0
if c_4*3 + c_2*2 >= N:
    ans = "Yes"
else:
    ans = "No"
print(ans)