# input
N = int(input())
a = [int(input()) for _ in range(N)]

# 4の倍数, 奇数の数
i, j = 0, 0

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

if j >= i + 2:
    print('No')
else:
    print('Yes')