N = int(input())
A = [int(x) for x in input().split()]

cnt = 0
flg_2 = 0
for a in A:
    if a % 4 == 0:
        cnt += 1
    elif a == 2:
        flg_2 += 1
        if flg_2 % 2 == 0:
            N -= 1
if cnt >= N//2:
    ans = 'Yes'
else:
    ans = 'No'
print(ans)