n = int(input())
a = list(map(int, input().split()))

pair = n*(n - 1)/2
not_4 = 0
ans = 'Yes'
other_4 = [i for i in a if i%4 != 0]
num = len(other_4)

for i in range(num):
  for j in range(num):
    
    if i != j and a[i]*a[j]%4 != 0:
      not_4 += 1
      
      if not_4 >= pair:
        ans = 'No'
        break
    
print(ans)