// use itertools::Itertools; use proconio::input; use std::cmp::max; fn main() { input! { a: [i32; 3], b: i32, } let x = a[2] * 3; let y = a.iter().sum::() + b; println!("{}", max(x, y)); }