use proconio::input; fn main() { input! { w: f64, z: f64, b: f64, } let ans = (w + z + w * b + z * b) as usize; println!("{ans}"); }