N = (input())
a = list(map(int, input().split()))
f_count = 0
t_count = 0
for i in range(len(a)):
    if a[i]%4 == 0:
        f_count += 3
    elif a[i]%2 == 0:
        t_count += 1
        
if (f_count >= len(a)) or ((f_count + t_count >= len(a)) and ( t_count > 1)):
    print('Yes')
else:
    print('No')
    