n=int(input())
a=list(map(int,input().split()))
tmp=1
if n==2:
    if a[0]*a[1]%4==0:
        print('Yes')
        exit()
    else:
        print('No')
        exit()
for i in range(n):
    tmp*=a[i]
if tmp%(4**(n-2))==0:
    print('Yes')
else:
    print('No')