import java.util.*;

public class Main {

    static final int MOD = 1000000007;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int ans = 0;
        for(int i=0;i<2;i++) {
            if (a > b){

                ans += a;
                a--;
            }else {

                ans +=b;
                b--;
            }
        }
        System.out.println(ans);



    }
} import java.util.*; util.* java public class Main {

    static final int MOD = 1000000007;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int ans = 0;
        for(int i=0;i<2;i++) {
            if (a > b){

                ans += a;
                a--;
            }else {

                ans +=b;
                b--;
            }
        }
        System.out.println(ans);



    }
} Main static final int MOD = 1000000007; MOD 1000000007 public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int ans = 0;
        for(int i=0;i<2;i++) {
            if (a > b){

                ans += a;
                a--;
            }else {

                ans +=b;
                b--;
            }
        }
        System.out.println(ans);



    } main {

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int ans = 0;
        for(int i=0;i<2;i++) {
            if (a > b){

                ans += a;
                a--;
            }else {

                ans +=b;
                b--;
            }
        }
        System.out.println(ans);



    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int ans = 0; ans 0 for(int i=0;i<2;i++) {
            if (a > b){

                ans += a;
                a--;
            }else {

                ans +=b;
                b--;
            }
        } int i=0; int i=0; i 0 i<2 i 2 i++ i++ i {
            if (a > b){

                ans += a;
                a--;
            }else {

                ans +=b;
                b--;
            }
        } {
            if (a > b){

                ans += a;
                a--;
            }else {

                ans +=b;
                b--;
            }
        } if (a > b){

                ans += a;
                a--;
            }else {

                ans +=b;
                b--;
            } a > b a b {

                ans += a;
                a--;
            } ans += a ans a a-- a {

                ans +=b;
                b--;
            } ans +=b ans b b-- b System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

    static final int MOD = 1000000007;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int ans = 0;
        for(int i=0;i<2;i++) {
            if (a > b){

                ans += a;
                a--;
            }else {

                ans +=b;
                b--;
            }
        }
        System.out.println(ans);



    }
} public class Main {

    static final int MOD = 1000000007;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int ans = 0;
        for(int i=0;i<2;i++) {
            if (a > b){

                ans += a;
                a--;
            }else {

                ans +=b;
                b--;
            }
        }
        System.out.println(ans);



    }
} Main
import java.util.*;

public class Main {

    static final int MOD = 1000000007;

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int ans = 0;
        for(int i=0;i<2;i++) {
            if (a > b){

                ans += a;
                a--;
            }else {

                ans +=b;
                b--;
            }
        }
        System.out.println(ans);



    }
}
