import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        int A;
        int B;
        int total = 0;
        
        Scanner scanner = new Scanner(System.in);
        A = scanner.nextInt();
        B = scanner.nextInt();
        //System.out.println(A + "" + B);
        
        for(int i = 0; i < 2; i++){
            if(A >= B){
                total += A;
                A--;
            }else{
                total += B;
                B--;
            }
        }
        System.out.println(total);
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        int A;
        int B;
        int total = 0;
        
        Scanner scanner = new Scanner(System.in);
        A = scanner.nextInt();
        B = scanner.nextInt();
        //System.out.println(A + "" + B);
        
        for(int i = 0; i < 2; i++){
            if(A >= B){
                total += A;
                A--;
            }else{
                total += B;
                B--;
            }
        }
        System.out.println(total);
        
    }
} Main public static void main(String[] args) throws Exception {
        int A;
        int B;
        int total = 0;
        
        Scanner scanner = new Scanner(System.in);
        A = scanner.nextInt();
        B = scanner.nextInt();
        //System.out.println(A + "" + B);
        
        for(int i = 0; i < 2; i++){
            if(A >= B){
                total += A;
                A--;
            }else{
                total += B;
                B--;
            }
        }
        System.out.println(total);
        
    } main {
        int A;
        int B;
        int total = 0;
        
        Scanner scanner = new Scanner(System.in);
        A = scanner.nextInt();
        B = scanner.nextInt();
        //System.out.println(A + "" + B);
        
        for(int i = 0; i < 2; i++){
            if(A >= B){
                total += A;
                A--;
            }else{
                total += B;
                B--;
            }
        }
        System.out.println(total);
        
    } int A; A int B; B int total = 0; total 0 Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) A = scanner.nextInt() A scanner.nextInt() scanner.nextInt scanner B = scanner.nextInt() B scanner.nextInt() scanner.nextInt scanner for(int i = 0; i < 2; i++){
            if(A >= B){
                total += A;
                A--;
            }else{
                total += B;
                B--;
            }
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
            if(A >= B){
                total += A;
                A--;
            }else{
                total += B;
                B--;
            }
        } {
            if(A >= B){
                total += A;
                A--;
            }else{
                total += B;
                B--;
            }
        } if(A >= B){
                total += A;
                A--;
            }else{
                total += B;
                B--;
            } A >= B A B {
                total += A;
                A--;
            } total += A total A A-- A {
                total += B;
                B--;
            } total += B total B B-- B System.out.println(total) System.out.println System.out System System.out total String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        int A;
        int B;
        int total = 0;
        
        Scanner scanner = new Scanner(System.in);
        A = scanner.nextInt();
        B = scanner.nextInt();
        //System.out.println(A + "" + B);
        
        for(int i = 0; i < 2; i++){
            if(A >= B){
                total += A;
                A--;
            }else{
                total += B;
                B--;
            }
        }
        System.out.println(total);
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        int A;
        int B;
        int total = 0;
        
        Scanner scanner = new Scanner(System.in);
        A = scanner.nextInt();
        B = scanner.nextInt();
        //System.out.println(A + "" + B);
        
        for(int i = 0; i < 2; i++){
            if(A >= B){
                total += A;
                A--;
            }else{
                total += B;
                B--;
            }
        }
        System.out.println(total);
        
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        int A;
        int B;
        int total = 0;
        
        Scanner scanner = new Scanner(System.in);
        A = scanner.nextInt();
        B = scanner.nextInt();
        //System.out.println(A + "" + B);
        
        for(int i = 0; i < 2; i++){
            if(A >= B){
                total += A;
                A--;
            }else{
                total += B;
                B--;
            }
        }
        System.out.println(total);
        
    }
}
