use std::vec::Vec;

fn read_vec<T: std::str::FromStr>() -> Vec<T> {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();
    s.trim().split_whitespace()
        .map(|e| e.parse().ok().unwrap()).collect()
}


fn main() {
    let mut v: Vec<i32> = read_vec();
    v.sort();
    if v[0] == v[1] {
      println!("{}", 2 * v[1])
    } else {
      println!("{}", 2 * v[1] - 1)
    }

}
