#![allow(unused_imports)]

use std::{i32, i64, u32, u64, usize, f64};
use std::cmp::{max, min, Ordering};
use std::collections::*;
use std::io::{stdout, Write, BufWriter};
use std::mem::{swap};
use maplit::*;
use proconio::{input, marker::{Isize1, Usize1, Bytes, Chars}};

#[proconio::fastout]
fn main() {
    input!(
        n: usize,
        arr: [u32; n],
    );
    if arr.into_iter().fold(0, |state, a| state ^ a) == 0 { println!("Yes"); }
    else { println!("No"); }
}
