import sys

input = sys.stdin.readline


def main():
    N = int(input())
    A = list(map(int, input().split()))

    xor_all = 0
    for a in A:
        xor_all = xor_all ^ a
    
    ans = "Yes" if xor_all == 0 else "No"
    print(ans)


if __name__ == "__main__":
    main()
