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

cnt = 0
cnt2 = 0
for i in range(N):
    if A[i] % 4 == 0:
        cnt += 1
    elif A[i] == 2:
        cnt2 += 1
        
if cnt >= (N - (cnt2 // 2 * 2)) // 2:
    print('Yes')
else:
    print('No')