import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;

public class Main {

    // input
    static int a;
    static int b;

    /**
     * input
     */
    static void input(){
        Scanner sc = new Scanner(System.in);
        a = sc.nextInt();
        b = sc.nextInt();
        sc.close();
    }
 
    /**
     * solver
     */
    static void solve(){
        int ans;

        if (a>b){
            ans = 2*a-1;
        } else if (a==b) {
            ans = a + b;
        } else {
            ans = 2*b-1;
        }
        
        System.out.println(ans);
    }

    public static void main(String args[]) {

        input();

        solve();
    }
} import java.util.Arrays; Arrays java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util import java.util.stream.Collectors; Collectors java.util.stream public class Main {

    // input
    static int a;
    static int b;

    /**
     * input
     */
    static void input(){
        Scanner sc = new Scanner(System.in);
        a = sc.nextInt();
        b = sc.nextInt();
        sc.close();
    }
 
    /**
     * solver
     */
    static void solve(){
        int ans;

        if (a>b){
            ans = 2*a-1;
        } else if (a==b) {
            ans = a + b;
        } else {
            ans = 2*b-1;
        }
        
        System.out.println(ans);
    }

    public static void main(String args[]) {

        input();

        solve();
    }
} Main // input
    static int a; a static int b; b /**
     * input
     */
    static void input(){
        Scanner sc = new Scanner(System.in);
        a = sc.nextInt();
        b = sc.nextInt();
        sc.close();
    } input {
        Scanner sc = new Scanner(System.in);
        a = sc.nextInt();
        b = sc.nextInt();
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc sc.close() sc.close sc /**
     * solver
     */
    static void solve(){
        int ans;

        if (a>b){
            ans = 2*a-1;
        } else if (a==b) {
            ans = a + b;
        } else {
            ans = 2*b-1;
        }
        
        System.out.println(ans);
    } solve {
        int ans;

        if (a>b){
            ans = 2*a-1;
        } else if (a==b) {
            ans = a + b;
        } else {
            ans = 2*b-1;
        }
        
        System.out.println(ans);
    } int ans; ans if (a>b){
            ans = 2*a-1;
        } else if (a==b) {
            ans = a + b;
        } else {
            ans = 2*b-1;
        } a>b a b {
            ans = 2*a-1;
        } ans = 2*a-1 ans 2*a-1 2*a 2 a 1 if (a==b) {
            ans = a + b;
        } else {
            ans = 2*b-1;
        } a==b a b {
            ans = a + b;
        } ans = a + b ans a + b a b {
            ans = 2*b-1;
        } ans = 2*b-1 ans 2*b-1 2*b 2 b 1 System.out.println(ans) System.out.println System.out System System.out ans public static void main(String args[]) {

        input();

        solve();
    } main {

        input();

        solve();
    } input() input solve() solve String args[] args public class Main {

    // input
    static int a;
    static int b;

    /**
     * input
     */
    static void input(){
        Scanner sc = new Scanner(System.in);
        a = sc.nextInt();
        b = sc.nextInt();
        sc.close();
    }
 
    /**
     * solver
     */
    static void solve(){
        int ans;

        if (a>b){
            ans = 2*a-1;
        } else if (a==b) {
            ans = a + b;
        } else {
            ans = 2*b-1;
        }
        
        System.out.println(ans);
    }

    public static void main(String args[]) {

        input();

        solve();
    }
} public class Main {

    // input
    static int a;
    static int b;

    /**
     * input
     */
    static void input(){
        Scanner sc = new Scanner(System.in);
        a = sc.nextInt();
        b = sc.nextInt();
        sc.close();
    }
 
    /**
     * solver
     */
    static void solve(){
        int ans;

        if (a>b){
            ans = 2*a-1;
        } else if (a==b) {
            ans = a + b;
        } else {
            ans = 2*b-1;
        }
        
        System.out.println(ans);
    }

    public static void main(String args[]) {

        input();

        solve();
    }
} Main
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;

public class Main {

    // input
    static int a;
    static int b;

    /**
     * input
     */
    static void input(){
        Scanner sc = new Scanner(System.in);
        a = sc.nextInt();
        b = sc.nextInt();
        sc.close();
    }
 
    /**
     * solver
     */
    static void solve(){
        int ans;

        if (a>b){
            ans = 2*a-1;
        } else if (a==b) {
            ans = a + b;
        } else {
            ans = 2*b-1;
        }
        
        System.out.println(ans);
    }

    public static void main(String args[]) {

        input();

        solve();
    }
}
