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

x4count = 0
twoflag = False
for x in a:
    if x % 4 == 0:
        x4count += 1
    elif x == 2:
        if twoflag:
            x4count += 1
            N -= 1
            twoflag = False
        else:
            twoflag = True

if x4count >= N//2:
    print('Yes')
else:
    print('No')