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:
      continue
      
    if a[i]*a[j]%4 != 0:
      not_4 += 1
      
    if not_4 >= pair:
      ans = 'No'
      break
    
print(ans)

  