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

x4count = 0
x2count = 0
for i,x in enumerate(a):
    if x % 4 == 0:
        x4count += 1
    elif x == 2:
        x2count += 1

# 2の処理
if x2count > 0:
    N = N - x2count + 1

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