'''
Created on 2020/09/03

@author: harurun
'''
def main():
  import sys
  pin=sys.stdin.readline
  pout=sys.stdout.write
  perr=sys.stderr.write
  
  N=int(pin())
  a=list(map(int,pin().split()))
  s=1
  for i in a:
    s=s^i 
  if s==1:
    print("Yes")
  else:
    print("No")
  return 

main()