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

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

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