function Main(input) {
  input = input.split('\n')
  var N = input[0]
  var a = input[1].split(' ')
  var flag = true
  a = a.map(x => parseInt(x))

  var ans = a[0]

  for (var i = 1; i < N; i++) {
    ans ^= a[i]
  }

  console.log(ans === 0 ? 'Yes' : 'No')
}

Main(require('fs').readFileSync('/dev/stdin', 'utf8'))
