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