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

div4, div2 = 0, 0
for i in range(n):
    if a[i]%4 == 0:
        div4 += 1
    elif a[i]%2 == 0:
        div2 += 1

if div4+div2//2 >= n/3:
    print("Yes")
else:
    print("No")
