import itertools

N = int(input())
a = [int(i) for i in input().split()]

count2 = 0
for i in itertools.combinations(a,2):
    if (i[0]*i[1]) % 4 == 0:
        count2 += 1
        if count2 >= N/3:
            break

ans = 'Yes' if count2>= N/3 else 'No'
print(ans)