import java.util.*;

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