n = int(input())
a = list(map(int, input().split()))
m = 0
for i in a:
    if i%2==0:
        if i%4==0:
            m += 2
        else:
            m += 1
if m>= len(a):
    print('Yes')
else:
    print('No')