N = int(input())
a = list(map(int, input().split()))
cnt = 0
cnt2 = 0
for i in a:
    if i % 4 == 0:
        cnt += 1
    if i == 2:
        cnt2 += 1

tmp = (N // 3)
if N % 3 != 0:
    tmp += 1
cnt += cnt2 // 2

if tmp <= cnt:
    print('Yes')
else:
    print('No')
