use proconio::input; fn main(){ input!{ a: i32, b: i32, c: i32, } let ok = 2*b == a+c; println!("{}", if ok{"Yes"} else{"No"}); }