use std::cmp; fn main() { proconio::input! { a:i32, b:i32, } println!("{}",a+b+cmp::max(0,i32::abs(a-b)-1)); }