n = int(input())
a = list(map(int, input().split()))

num4 = 0
num2 = 0
for i in a:
    if i%4 == 0:
        num4 += 1
    elif i == 2:
        num2 += 1

num = num4 + num2//2
if n//2 <= num:
    print("Yes")
else:
    print("No")
