fn main() { let v = read_vec::(); if v[0] == v[1] { println!("{}", v[0] * 2 - 1); } else { println!("{}", std::cmp::min(v[0], v[1]) * 2); } } fn read() -> T { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); s.trim().parse().ok().unwrap() } fn read_vec() -> Vec { read::() .split_whitespace() .map(|e| e.parse().ok().unwrap()) .collect() }