N = int(input())
a = [int(_) for _ in input().split()]

cnt = 0
cnt2 = 0

for i in range(N):
    if a[i] % 2 == 0 and a[i] % 4 != 0:
        cnt2 += 1
        if cnt2 == 2:
            cnt += 1
            cnt2 = 0
    if a[i] % 4 == 0:
        cnt += 3

if cnt >= N:
    print('Yes')
else:
    print('No')
  