fn main() { let n; { let mut s = String::new(); std::io::stdin().read_line(&mut s).unwrap(); let mut ws = s.split_whitespace(); n = ws.next().unwrap().parse::().unwrap(); } let a; { let mut res: Vec<_> = vec![]; let mut s = String::new(); std::io::stdin().read_line(&mut s).unwrap(); let mut ws = s.split_whitespace(); for _ in 0..n { res.push(ws.next().unwrap().parse::().unwrap()); } a = res; } if a.iter().cloned().fold(0_usize, |x, y| x ^ y) != 0 { println!("No"); return; } let mut dp = vec![0_u32; 5001]; for i in 0..n { let mut temp = dp.clone(); for j in 0..5000 + 1 { if j ^ a[i] < 5000 + 1 { temp[j ^ a[i]] = temp[j ^ a[i]].saturating_add(dp[j]); } } temp[a[i]] += 1; std::mem::swap(&mut dp, &mut temp); } println!("{}", if dp[0] >= 2 { "Yes" } else { "No" }); }