import java.util.*;

public class Main {

    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        String[] line = sc.nextLine().split(" ");
        
        int buttonA = Integer.parseInt(line[0]);
        int buttonB = Integer.parseInt(line[1]);

        int ans = 0;
        if(buttonA > buttonB){
            ans += buttonA;
            buttonA--;
        }else{
            ans += buttonB;
            buttonB--;
        }

        if(buttonA > buttonB){
            ans += buttonA;
        }else{
            ans += buttonB;
        }

        System.out.println(ans);
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        String[] line = sc.nextLine().split(" ");
        
        int buttonA = Integer.parseInt(line[0]);
        int buttonB = Integer.parseInt(line[1]);

        int ans = 0;
        if(buttonA > buttonB){
            ans += buttonA;
            buttonA--;
        }else{
            ans += buttonB;
            buttonB--;
        }

        if(buttonA > buttonB){
            ans += buttonA;
        }else{
            ans += buttonB;
        }

        System.out.println(ans);
    }
} Main public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        String[] line = sc.nextLine().split(" ");
        
        int buttonA = Integer.parseInt(line[0]);
        int buttonB = Integer.parseInt(line[1]);

        int ans = 0;
        if(buttonA > buttonB){
            ans += buttonA;
            buttonA--;
        }else{
            ans += buttonB;
            buttonB--;
        }

        if(buttonA > buttonB){
            ans += buttonA;
        }else{
            ans += buttonB;
        }

        System.out.println(ans);
    } main {

        Scanner sc = new Scanner(System.in);
        String[] line = sc.nextLine().split(" ");
        
        int buttonA = Integer.parseInt(line[0]);
        int buttonB = Integer.parseInt(line[1]);

        int ans = 0;
        if(buttonA > buttonB){
            ans += buttonA;
            buttonA--;
        }else{
            ans += buttonB;
            buttonB--;
        }

        if(buttonA > buttonB){
            ans += buttonA;
        }else{
            ans += buttonB;
        }

        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] line = sc.nextLine().split(" "); line sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int buttonA = Integer.parseInt(line[0]); buttonA Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 int buttonB = Integer.parseInt(line[1]); buttonB Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 int ans = 0; ans 0 if(buttonA > buttonB){
            ans += buttonA;
            buttonA--;
        }else{
            ans += buttonB;
            buttonB--;
        } buttonA > buttonB buttonA buttonB {
            ans += buttonA;
            buttonA--;
        } ans += buttonA ans buttonA buttonA-- buttonA {
            ans += buttonB;
            buttonB--;
        } ans += buttonB ans buttonB buttonB-- buttonB if(buttonA > buttonB){
            ans += buttonA;
        }else{
            ans += buttonB;
        } buttonA > buttonB buttonA buttonB {
            ans += buttonA;
        } ans += buttonA ans buttonA {
            ans += buttonB;
        } ans += buttonB ans buttonB 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) throws Exception {

        Scanner sc = new Scanner(System.in);
        String[] line = sc.nextLine().split(" ");
        
        int buttonA = Integer.parseInt(line[0]);
        int buttonB = Integer.parseInt(line[1]);

        int ans = 0;
        if(buttonA > buttonB){
            ans += buttonA;
            buttonA--;
        }else{
            ans += buttonB;
            buttonB--;
        }

        if(buttonA > buttonB){
            ans += buttonA;
        }else{
            ans += buttonB;
        }

        System.out.println(ans);
    }
} public class Main {

    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        String[] line = sc.nextLine().split(" ");
        
        int buttonA = Integer.parseInt(line[0]);
        int buttonB = Integer.parseInt(line[1]);

        int ans = 0;
        if(buttonA > buttonB){
            ans += buttonA;
            buttonA--;
        }else{
            ans += buttonB;
            buttonB--;
        }

        if(buttonA > buttonB){
            ans += buttonA;
        }else{
            ans += buttonB;
        }

        System.out.println(ans);
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);
        String[] line = sc.nextLine().split(" ");
        
        int buttonA = Integer.parseInt(line[0]);
        int buttonB = Integer.parseInt(line[1]);

        int ans = 0;
        if(buttonA > buttonB){
            ans += buttonA;
            buttonA--;
        }else{
            ans += buttonB;
            buttonB--;
        }

        if(buttonA > buttonB){
            ans += buttonA;
        }else{
            ans += buttonB;
        }

        System.out.println(ans);
    }
}
