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::new(); dp.resize(20000, 0); for i in 0..n { let mut temp = dp.clone(); temp.resize(20000, 0); temp[a[i]] += 1; for j in 0..20000 { temp[j ^ a[i]] += dp[j]; } dp = temp; } println!("{}", if dp[0] >= 2 { "Yes" } else { "No" }); }