import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Integer a = sc.nextInt();
        Integer b = sc.nextInt();
        System.out.println(Math.max(a,b) + Math.max(Math.max(a, b)-1, Math.min(a,b)));
    }
} import java.util.*; util.* java public class Main {

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

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

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Integer a = sc.nextInt();
        Integer b = sc.nextInt();
        System.out.println(Math.max(a,b) + Math.max(Math.max(a, b)-1, Math.min(a,b)));
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Integer a = sc.nextInt();
        Integer b = sc.nextInt();
        System.out.println(Math.max(a,b) + Math.max(Math.max(a, b)-1, Math.min(a,b)));
    }
}
