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_u8; 8200]; for i in 0..n { let mut temp = dp.clone(); for j in (0..8200).filter(|j| j ^ a[i] < 8200) { temp[j ^ a[i]] = temp[j ^ a[i]].saturating_add(dp[j]); } temp[a[i]] = temp[a[i]].saturating_add(1); std::mem::swap(&mut dp, &mut temp); } println!("{}", if dp[0] >= 2 { "Yes" } else { "No" }); }