n=int(input()) a=list(map(int,input().split())) if n>16: print("Yes") else: for i in range(1,(1<>j)&1: b^=a[j] else: c^=a[j] if b==0 and c==0: print("Yes") exit() print("No")