n, *A = map(int, open(0).read().split())

def f(q):
  y = 0
  while True:
    q, r = divmod(q, 2)
    if r == 1:
      break
    y += 1
  return y

B = [0] * 3
for a in A:
  b = f(a)
  B[0] += b == 0
  B[1] += b == 1
  B[2] += b >= 2
print('Yes' if B[0] + B[1]%2 <= B[2] else 'No')