import java.util.*;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int num1 = sc.nextInt();
        int num2 = sc.nextInt();

        int ans;

        if(num1 == num2){
            ans = num1 * 2;
        }else if(num1 > num2){
            ans = num1 + (num1 - 1);
        }else{
            ans = num2 + (num2 - 1);
        }

        System.out.println(ans);
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int num1 = sc.nextInt();
        int num2 = sc.nextInt();

        int ans;

        if(num1 == num2){
            ans = num1 * 2;
        }else if(num1 > num2){
            ans = num1 + (num1 - 1);
        }else{
            ans = num2 + (num2 - 1);
        }

        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int num1 = sc.nextInt();
        int num2 = sc.nextInt();

        int ans;

        if(num1 == num2){
            ans = num1 * 2;
        }else if(num1 > num2){
            ans = num1 + (num1 - 1);
        }else{
            ans = num2 + (num2 - 1);
        }

        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);

        int num1 = sc.nextInt();
        int num2 = sc.nextInt();

        int ans;

        if(num1 == num2){
            ans = num1 * 2;
        }else if(num1 > num2){
            ans = num1 + (num1 - 1);
        }else{
            ans = num2 + (num2 - 1);
        }

        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num1 = sc.nextInt(); num1 sc.nextInt() sc.nextInt sc int num2 = sc.nextInt(); num2 sc.nextInt() sc.nextInt sc int ans; ans if(num1 == num2){
            ans = num1 * 2;
        }else if(num1 > num2){
            ans = num1 + (num1 - 1);
        }else{
            ans = num2 + (num2 - 1);
        } num1 == num2 num1 num2 {
            ans = num1 * 2;
        } ans = num1 * 2 ans num1 * 2 num1 2 if(num1 > num2){
            ans = num1 + (num1 - 1);
        }else{
            ans = num2 + (num2 - 1);
        } num1 > num2 num1 num2 {
            ans = num1 + (num1 - 1);
        } ans = num1 + (num1 - 1) ans num1 + (num1 - 1) num1 (num1 - 1) num1 1 {
            ans = num2 + (num2 - 1);
        } ans = num2 + (num2 - 1) ans num2 + (num2 - 1) num2 (num2 - 1) num2 1 System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int num1 = sc.nextInt();
        int num2 = sc.nextInt();

        int ans;

        if(num1 == num2){
            ans = num1 * 2;
        }else if(num1 > num2){
            ans = num1 + (num1 - 1);
        }else{
            ans = num2 + (num2 - 1);
        }

        System.out.println(ans);
    }
}