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

for i in range(len(a)):
    if a[i]%4 == 0:
        count += 3
    elif a[i]%2 == 0:
        count += 1
        
if count >= len(a):
    print('Yes')
else:
    print('No')