# https://atcoder.jp/contests/agc035/tasks/agc035_a

n = int(input())
nums = [int(i) for i in input().split()]
num = 0
for i in range(n):
    num ^= nums[i]
if num == 0:
    print('Yes')
else:
    print('No')