import itertools
N=int(input())
A=list(map(int,input().split()))
junretsu=list(itertools.permutations(A))
for j in junretsu:
    cnt=0
    for i in range(N-1):
        if j[i]*j[i+1]%4!=0:
            break
        else:
            cnt+=1
    if cnt==N-1:
        print('Yes')
        exit()
print('No')