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

pair = n*(n - 1)/2
not_4 = 0
ans = 'Yes'
num = len(a)
for i in range(num):
  if a[i]%4 == 0:
    continue
  else:
    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
    