import numpy as np
n = int(input())
a = np.array(list(map(int, input().split())))

ans = True
for i in range(30):
  judge = np.sum(a % 2)
  if judge < (n - 1) // 2 + 1 and judge != 0:
    ans = False
    break
  a = a // 2

print("Yes" if ans else "No")