import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int A = scan.nextInt();
        int B = scan.nextInt();
        int sum = 0;
        int x = 0;

        for (int y=0; y<2; y++){
            
            if(A<B){
                x = B;
                B = B-1;
                sum = sum + x;
            }
            else{
                x = A;
                A = A - 1;
                sum = sum + x;
            }
        }
            System.out.println(sum);
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int A = scan.nextInt();
        int B = scan.nextInt();
        int sum = 0;
        int x = 0;

        for (int y=0; y<2; y++){
            
            if(A<B){
                x = B;
                B = B-1;
                sum = sum + x;
            }
            else{
                x = A;
                A = A - 1;
                sum = sum + x;
            }
        }
            System.out.println(sum);
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int A = scan.nextInt();
        int B = scan.nextInt();
        int sum = 0;
        int x = 0;

        for (int y=0; y<2; y++){
            
            if(A<B){
                x = B;
                B = B-1;
                sum = sum + x;
            }
            else{
                x = A;
                A = A - 1;
                sum = sum + x;
            }
        }
            System.out.println(sum);
    } main {
        Scanner scan = new Scanner(System.in);
        int A = scan.nextInt();
        int B = scan.nextInt();
        int sum = 0;
        int x = 0;

        for (int y=0; y<2; y++){
            
            if(A<B){
                x = B;
                B = B-1;
                sum = sum + x;
            }
            else{
                x = A;
                A = A - 1;
                sum = sum + x;
            }
        }
            System.out.println(sum);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int A = scan.nextInt(); A scan.nextInt() scan.nextInt scan int B = scan.nextInt(); B scan.nextInt() scan.nextInt scan int sum = 0; sum 0 int x = 0; x 0 for (int y=0; y<2; y++){
            
            if(A<B){
                x = B;
                B = B-1;
                sum = sum + x;
            }
            else{
                x = A;
                A = A - 1;
                sum = sum + x;
            }
        } int y=0; int y=0; y 0 y<2 y 2 y++ y++ y {
            
            if(A<B){
                x = B;
                B = B-1;
                sum = sum + x;
            }
            else{
                x = A;
                A = A - 1;
                sum = sum + x;
            }
        } {
            
            if(A<B){
                x = B;
                B = B-1;
                sum = sum + x;
            }
            else{
                x = A;
                A = A - 1;
                sum = sum + x;
            }
        } if(A<B){
                x = B;
                B = B-1;
                sum = sum + x;
            }
            else{
                x = A;
                A = A - 1;
                sum = sum + x;
            } A<B A B {
                x = B;
                B = B-1;
                sum = sum + x;
            } x = B x B B = B-1 B B-1 B 1 sum = sum + x sum sum + x sum x {
                x = A;
                A = A - 1;
                sum = sum + x;
            } x = A x A A = A - 1 A A - 1 A 1 sum = sum + x sum sum + x sum x System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int A = scan.nextInt();
        int B = scan.nextInt();
        int sum = 0;
        int x = 0;

        for (int y=0; y<2; y++){
            
            if(A<B){
                x = B;
                B = B-1;
                sum = sum + x;
            }
            else{
                x = A;
                A = A - 1;
                sum = sum + x;
            }
        }
            System.out.println(sum);
    }
} public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int A = scan.nextInt();
        int B = scan.nextInt();
        int sum = 0;
        int x = 0;

        for (int y=0; y<2; y++){
            
            if(A<B){
                x = B;
                B = B-1;
                sum = sum + x;
            }
            else{
                x = A;
                A = A - 1;
                sum = sum + x;
            }
        }
            System.out.println(sum);
    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int A = scan.nextInt();
        int B = scan.nextInt();
        int sum = 0;
        int x = 0;

        for (int y=0; y<2; y++){
            
            if(A<B){
                x = B;
                B = B-1;
                sum = sum + x;
            }
            else{
                x = A;
                A = A - 1;
                sum = sum + x;
            }
        }
            System.out.println(sum);
    }
}
