local bxor = bit.bxor local n = io.read("*n") local a = {} local v = 0 for i = 1, n do a[i] = io.read("*n") v = bxor(v, a[i]) end if 0 < v then print("No") os.exit() end for i = 1, n do if a[i] == 0 then print("Yes") os.exit() end end local map = {} for i = 1, n do if map[a[i]] then print("Yes") os.exit() end map[a[i]] = true end local t = {} t[0] = true v = 0 for key, val in pairs(map) do if not next(map, key) then break end v = bxor(v, key) if t[v] then print("Yes") os.exit() end t[v] = true end print("No")