import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int a = Math.max(A,B);
        int b = Math.min(A,B);
        int ans = Math.max(2*a-1,a+b);
        System.out.println(ans);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int a = Math.max(A,B);
        int b = Math.min(A,B);
        int ans = Math.max(2*a-1,a+b);
        System.out.println(ans);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int a = Math.max(A,B);
        int b = Math.min(A,B);
        int ans = Math.max(2*a-1,a+b);
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int a = Math.max(A,B);
        int b = Math.min(A,B);
        int ans = Math.max(2*a-1,a+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 a = Math.max(A,B); a Math.max(A,B) Math.max Math A B int b = Math.min(A,B); b Math.min(A,B) Math.min Math A B int ans = Math.max(2*a-1,a+b); ans Math.max(2*a-1,a+b) Math.max Math 2*a-1 2*a 2 a 1 a+b a b System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int a = Math.max(A,B);
        int b = Math.min(A,B);
        int ans = Math.max(2*a-1,a+b);
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int a = Math.max(A,B);
        int b = Math.min(A,B);
        int ans = Math.max(2*a-1,a+b);
        System.out.println(ans);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int a = Math.max(A,B);
        int b = Math.min(A,B);
        int ans = Math.max(2*a-1,a+b);
        System.out.println(ans);
    }
}