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 ans=0;
        if(a<b){
            ans+=b;
            b--;
        }else{
            ans+=a;
            a--;
        }
        if(a<b){
            ans+=b;
            b--;
        }else{
            ans+=a;
            a--;
        }
        System.out.println(ans);
        
    }
} 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 ans=0;
        if(a<b){
            ans+=b;
            b--;
        }else{
            ans+=a;
            a--;
        }
        if(a<b){
            ans+=b;
            b--;
        }else{
            ans+=a;
            a--;
        }
        System.out.println(ans);
        
    }
} Main public static void main(String [] args){
        Scanner scan=new Scanner (System.in);
        int a=scan.nextInt();
        int b=scan.nextInt();
        int ans=0;
        if(a<b){
            ans+=b;
            b--;
        }else{
            ans+=a;
            a--;
        }
        if(a<b){
            ans+=b;
            b--;
        }else{
            ans+=a;
            a--;
        }
        System.out.println(ans);
        
    } main {
        Scanner scan=new Scanner (System.in);
        int a=scan.nextInt();
        int b=scan.nextInt();
        int ans=0;
        if(a<b){
            ans+=b;
            b--;
        }else{
            ans+=a;
            a--;
        }
        if(a<b){
            ans+=b;
            b--;
        }else{
            ans+=a;
            a--;
        }
        System.out.println(ans);
        
    } 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 ans=0; ans 0 if(a<b){
            ans+=b;
            b--;
        }else{
            ans+=a;
            a--;
        } a<b a b {
            ans+=b;
            b--;
        } ans+=b ans b b-- b {
            ans+=a;
            a--;
        } ans+=a ans a a-- a if(a<b){
            ans+=b;
            b--;
        }else{
            ans+=a;
            a--;
        } a<b a b {
            ans+=b;
            b--;
        } ans+=b ans b b-- b {
            ans+=a;
            a--;
        } ans+=a ans a a-- a System.out.println(ans) System.out.println System.out System System.out ans 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 ans=0;
        if(a<b){
            ans+=b;
            b--;
        }else{
            ans+=a;
            a--;
        }
        if(a<b){
            ans+=b;
            b--;
        }else{
            ans+=a;
            a--;
        }
        System.out.println(ans);
        
    }
} public class Main{
    public static void main(String [] args){
        Scanner scan=new Scanner (System.in);
        int a=scan.nextInt();
        int b=scan.nextInt();
        int ans=0;
        if(a<b){
            ans+=b;
            b--;
        }else{
            ans+=a;
            a--;
        }
        if(a<b){
            ans+=b;
            b--;
        }else{
            ans+=a;
            a--;
        }
        System.out.println(ans);
        
    }
} 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 ans=0;
        if(a<b){
            ans+=b;
            b--;
        }else{
            ans+=a;
            a--;
        }
        if(a<b){
            ans+=b;
            b--;
        }else{
            ans+=a;
            a--;
        }
        System.out.println(ans);
        
    }
}