N = input()
ai = [int(x) for x in input().split()]
bi = sum([int(bin(x)[2:]) for x in ai])
if list(set(str(bi)))[0] == "2":
  print("Yes")
else:
  if list(set(str(bi)))[0] == "0":
    print("Yes")
  else:
    print("No")