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

cnt_4 = 0
cnt_2 = 0

for n in numbers:
    if n % 4 == 0:
        cnt_4 += 1
    elif n == 2:
        cnt_2 += 1
    
cnt = cnt_4 + (cnt_2 // 2)

if cnt >= N // 2:
    print('Yes')
else :
    print('No')