# -*- coding: utf-8 -*-
def solve():
    N = int(input())
    A = dict()
    for a in map(int, input().split()):
        A[a] = A.get(a,0)+1
    a = min(A.keys())
    A[a] -= 1
    if A[a] == 0:
        del A[a]

    for b in A.keys():
        B = A.copy()
        c_, c = a, b
        while c in B.keys():
            B[c] -= 1
            if B[c] == 0:
                del B[c]
            c_, c = c, c_^c
        if B == dict() and c == a:
            return 'Yes'
    return 'No'
if __name__ == '__main__':
    print(solve())