N = int(input())
a = [int(i) for i in input().split()]
n2 = 0; n4 = 0
for ai in a:
    if ai%4 == 0:
        n4 += 1
    elif ai%2 == 0:
        n2 += 1

ans = "No"
if n4*2+1 >= N or n4*2 >= N-n2 or n2 == N:
    ans = "Yes"

print(ans)
