def resolve():
    n = int(input())
    dataset = set(map(int, input().split()))
    
    xor = 0

    for i in range(n):
        xor ^= dataset[n]
    
    if xor == 0:
        print('Yes')
    else:
        print('No')

resolve()