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

pair = n*(n - 1)/2
not_4 = 0
ans = 'Yes'
for i in range(len(a)):
  for j in range(len(a)):
    
    if i == j or a[i]%4 == 0 or a[j]%4 == 0:
      continue
    else:  
      if a[i]*a[j]%4 != 0:
        not_4 += 1
      
      if not_4 >= pair:
        ans = 'No'
        break
    
print(ans)