N = int(input())
a = list(map(int,input().split()))
count = 0
two = 0
for i in a:
    if i%4 == 0:
        count += 1
    elif i%2 == 0:
        two += 1
if two != 0:
    N -= two
    N -= 2
    count -= 1
N -= 3*count
if N > 0:
    print("No")
else:
    print("Yes")