n = int(input())
v = list(map(int,input().split(' ')))
ans = 0
tmp = 0
for i in range(0,n-1):
    for j in range(i+1, n):
        if v[i]*v[j] % 4 == 0:
            ans += 1
        else:
            tmp += 1
if  ans > tmp:
    print('Yes')
else:
    print('No')


