import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)

N = int(input())
As = list(mapint())
a = 0
for i in range(N):
    a ^= As[i]
if a==0:
    print('Yes')
else:
    print('No')