N = int(input())
a = list(map(int, input().split()))
cnt = 0
for i in range(N):
    if a[i] % 4 == 0:
        cnt += 1
    elif a[i] % 2 == 0:
        cnt += 0.5
if cnt >= N // 2:
    print('Yes')
else:
    print('No')