import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        int coinNumber = 0;
        
        for(int i = 0; i < 2; i++){
            if(a > b){
                coinNumber += a;
                a--;
            }else{
                coinNumber += b;
                b--;
            }
        }
        
        System.out.println(coinNumber);
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        int coinNumber = 0;
        
        for(int i = 0; i < 2; i++){
            if(a > b){
                coinNumber += a;
                a--;
            }else{
                coinNumber += b;
                b--;
            }
        }
        
        System.out.println(coinNumber);
        
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        int coinNumber = 0;
        
        for(int i = 0; i < 2; i++){
            if(a > b){
                coinNumber += a;
                a--;
            }else{
                coinNumber += b;
                b--;
            }
        }
        
        System.out.println(coinNumber);
        
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        int coinNumber = 0;
        
        for(int i = 0; i < 2; i++){
            if(a > b){
                coinNumber += a;
                a--;
            }else{
                coinNumber += b;
                b--;
            }
        }
        
        System.out.println(coinNumber);
        
    } 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 coinNumber = 0; coinNumber 0 for(int i = 0; i < 2; i++){
            if(a > b){
                coinNumber += a;
                a--;
            }else{
                coinNumber += b;
                b--;
            }
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
            if(a > b){
                coinNumber += a;
                a--;
            }else{
                coinNumber += b;
                b--;
            }
        } {
            if(a > b){
                coinNumber += a;
                a--;
            }else{
                coinNumber += b;
                b--;
            }
        } if(a > b){
                coinNumber += a;
                a--;
            }else{
                coinNumber += b;
                b--;
            } a > b a b {
                coinNumber += a;
                a--;
            } coinNumber += a coinNumber a a-- a {
                coinNumber += b;
                b--;
            } coinNumber += b coinNumber b b-- b System.out.println(coinNumber) System.out.println System.out System System.out coinNumber String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        int coinNumber = 0;
        
        for(int i = 0; i < 2; i++){
            if(a > b){
                coinNumber += a;
                a--;
            }else{
                coinNumber += b;
                b--;
            }
        }
        
        System.out.println(coinNumber);
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        int coinNumber = 0;
        
        for(int i = 0; i < 2; i++){
            if(a > b){
                coinNumber += a;
                a--;
            }else{
                coinNumber += b;
                b--;
            }
        }
        
        System.out.println(coinNumber);
        
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        int coinNumber = 0;
        
        for(int i = 0; i < 2; i++){
            if(a > b){
                coinNumber += a;
                a--;
            }else{
                coinNumber += b;
                b--;
            }
        }
        
        System.out.println(coinNumber);
        
    }
}
