N = int(input())
A = list(map(int, input().split()))
ans = [0] * N
num_2 = 0
num_4 = 0
num = 0

for i in range(N):
    if A[i] % 4 == 0:
        num_4 += 1
    elif A[i] == 2:
        num_2 += 1
    else:
        num += 1

if num_2 % 2 == 0:
    num += num_2 // 2

if num <= (num_4 + 1):
    ans = 'Yes'
else:
    ans = 'No'

print(ans)