n = int(input())
a = list(map(int,input().split()))

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

if cnt >= n//2:
    print('Yes')
else:
    if n - cnt*2 <= two:
        print('Yes')
    else:
        print('No')