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
f = True
ans = "Yes"
for i in range(N):
    if c_O > 0 and f:
        c_O -= 1
        f = not f
    elif c_4 > 0 and not f:
        c_4 -= 1
        f = not f
    elif c_2 > 0 and f:
        c_2 -= 1
    else:
        ans = "No"
        break
print(ans)