n = int(input())
a = [int(i) for i in input().split()]
cnt = 0
st = 0

for i in range(n):
    if a[i]%4==0:
        cnt += 3
    elif a[i]%2 == 0:
        if st != 0:
            cnt += 1
        st = 1

if cnt >= n:
    ans = "Yes"
else:
    ans = "No"

print(ans)