program xor_circle
  implicit none
  integer :: n, a(100000) = 0, x = 0, i
  read(*,*) n
  read(*,*) a(1:n)
  do i = 1, n
    x = xor(x,a(i))
  end do
  if (x == 0) then
    write(*,'(a)') "Yes"
  else
    write(*,'(a)') "No"
  end if
  stop
end program xor_circle