import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); String[] sa = br.readLine().split(" "); int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = Integer.parseInt(sa[i]); } br.close(); int m = 5000; int[] c = new int[m + 1]; int xor = 0; for (int i = 0; i < n; i++) { xor ^= a[i]; c[a[i]]++; } if (xor != 0) { System.out.println("No"); return; } for (int i = 0; i < c.length; i++) { if (c[i] >= 2) { System.out.println("Yes"); return; } } boolean[] dp = new boolean[8200]; dp[0] = true; for (int i = 0; i < n; i++) { boolean[] wk = Arrays.copyOf(dp, dp.length); wk[0] = false; for (int j = 0; j <= m; j++) { if (dp[j]) { wk[j ^ a[i]] = true; } } if (i < n - 1 && wk[0]) { System.out.println("Yes"); return; } dp = wk; } System.out.println("No"); } }