N = int(input())
a = list(map(int, input().split()))
four = 0
two = 0
for i in range(N):
    if a[i] % 4 == 0:
        four += 1
    if a[i] == 2:
        two += 1

if two == N:
    print('Yes')
    exit()
two = two // 2
if four>0 and two>0:
    four += four + two
if four >= N // 2:
    print('Yes')
else:
    print('No')