N = int(input())
a = list(map(int, input().split()))
cnt_odd = 0
cnt_4 = 0

for ai in a:
    if ai % 2 == 1:
        cnt_odd += 1
    if ai % 4 == 0:
        cnt_4 += 1
        
if cnt_4 >= cnt_odd:
    ans = "Yes"
else: 
    ans = "NO"

if N == cnt_4 + cnt_odd and cnt_4 >= cnt_odd-1:
    ans = "Yes"

print(ans)