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

cnt_of_4 = 0
cnt_of_2 = 0
cnt_of_1 = 0
for i in range(N):
    if a[i] % 4 == 0:
        cnt_of_4 += 1
    elif a[i] == 2:
        cnt_of_2 += 1
    else:
        cnt_of_1 += 1

if cnt_of_4 >= N//2:
    print('Yes')
else:
    if cnt_of_4 < cnt_of_1:
        print('No')
        exit()
    if cnt_of_4 > cnt_of_1:
        cnt_of_2 -= (cnt_of_4-cnt_of_1)
    if cnt_of_4 * 2 + ((cnt_of_2//2)*2) >= N:
        print('Yes')
    else:
        print('No')



