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

cnt_2 = -1
multi_4 = 0
for i in range(n):
    if a[i] % 4 == 0:
        multi_4 += 1
    elif a[i] == 2:
        cnt_2 += 1
print("Yes" if multi_4 + cnt_2 >= n // 2 else "No")