n = gets.to_i a = gets.split.map &:to_i k = 0 for i in 0...n k = k ^ a[i] end if k != 0 puts "No" exit end a = a.sort b = a[i] c = 0 for i in 1...n if b ^ a[i] == b + a[i] c = 1 else b = b ^ a[i] end end if c == 1 && b == 0 puts "Yes" else puts "No" end