function Main(input) {
  N = input.split("\n")[0];
  d = input.split("\n")[1].split(" ").map(function(a) { return a * 1 });
  arr = new Array(30);
  for (i=0; i<arr.length; i++) {
      arr[i] = 0;
  }
  for (i=0; i<N; i++) {
     a = ("000000000000000000000000000000" + d[i].toString(2)).slice(-30).split("");
     for(j=0; j < a.length; j++) {
         arr[j] += a[j] * 1;
     }
  }

  ans = true;
  for (i=0; i<arr.length; i++) {
      ans = ans && arr[i] % 2 === 0;
  }
  console.log(ans ? 'Yes' : 'No')
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));