use proconio::{fastout, input}; #[fastout] fn main() { input! { x: u32, y: u32, z: u32, } println!("{}", output(solve(x, y, z))) } fn solve(x: u32, y: u32, z: u32) -> bool { [x, y, z].iter().any(|&a| a % 3 == 0) } fn output(ans: bool) -> &'static str { match ans { true => "Yes", false => "No", } }