fn main() { let mut temp = String::new(); std::io::stdin().read_line(&mut temp).ok(); let temp: Vec = temp.trim().split_whitespace().map(|s| s.parse().unwrap()).collect(); let x = temp[0]; let y = temp[1]; let z = temp[2]; let summary = x + y + z; if summary % 3 > 0 { println!("No"); return; } println!("Yes"); }