use proconio::input; fn main() { input!{ a: u16, b: u16, h: u16, }; let result = h * (a + b) / 2; println!("{}", {result}); }