import itertools
N = int(input())
a = list(map(int, input().split()))

ans = 'No'

for i in itertools.permutations(a):
    count = 0
    for j in range(1, len(i)):
        if (i[j-1] * i[j]) % 4 == 0:
            count += 1
        else:
            pass
    if count == N-1:
        ans = 'Yes'
        break

print(ans)