from functools import reduce from operator import xor def main(): N = int(input()) A = list(map(int, input().split())) if reduce(xor, A) != 0: print("No") return if len(set(A)) < len(A): print("Yes") return dp_table = [set((0,)), set()] for a_elm in A[:-1]: for xor_elm in dp_table[0]: dp_table[1].add(xor_elm) dp_table[1].add(xor_elm ^ a_elm) if xor_elm ^ a_elm == 0: print("Yes") return dp_table[0] = dp_table[1] dp_table[1] = set() print("No") if __name__ == "__main__": main()