n=int(input())
a=list(map(int,input().split()))
if a.count(2)>=2:
  for i in range(a.count(2)):
    a=a[:a.index(2)]+a[a.index(2)+1:]
  n=len(a)

cnt=0
for i in a:
  if i%4==0:
    cnt+=1
if cnt>=n//2:
  print("Yes")
else:
  print("No")