import itertools

N = int(input())
A = list(map(int, input().split()))

seq = list(itertools.permutations(A))

flag = 0
for i in range(len(seq)):
    seq_i = seq[i]
    cnt = 0
    for j in range(len(seq_i)-1):
        if (seq_i[j] * seq_i[j+1]) % 4 == 0:
            cnt += 1
        else:
            pass
    if cnt == len(seq_i) - 1:
        flag = 1
        break
    else:
        pass

if flag == 1:
    print("Yes")
else:
    print("No")





