N = input()
A = list(map(int, input().split()))

cnt4 = 0
cnt2 = 0
for i in range(N):
    if A[i]%4 == 0:
        cnt4 += 1
    elif A[i]%2 == 0:
        cnt2 += 1

print("Yes" if cnt4*2 + cnt2 >= N else "No")