import java.util.Scanner;
import java.util.InputMismatchException;

public class Main{
    public static void main(String args[]){

        String input[] = new String[2];

        try{
            Scanner scanner = new Scanner(System.in);
            input = scanner.nextLine().split(" ");
        } catch(InputMismatchException e){
            System.out.println(e);
        }

        int buttons[] = new int[2];
        for(int i = 0; i < input.length; i++){
            buttons[i] = Integer.parseInt(input[i]);
        }

        if(Math.abs(buttons[0] - buttons[1]) <= 1){
            System.out.println(buttons[0] + buttons[1]);
        }
        else{
            if(buttons[0] > buttons[1]){
                System.out.println(buttons[0] * 2 - 1);
            }
            else{
                System.out.println(buttons[1] * 2 - 1);
            }
        }
    }
} import java.util.Scanner; Scanner java.util import java.util.InputMismatchException; InputMismatchException java.util public class Main{
    public static void main(String args[]){

        String input[] = new String[2];

        try{
            Scanner scanner = new Scanner(System.in);
            input = scanner.nextLine().split(" ");
        } catch(InputMismatchException e){
            System.out.println(e);
        }

        int buttons[] = new int[2];
        for(int i = 0; i < input.length; i++){
            buttons[i] = Integer.parseInt(input[i]);
        }

        if(Math.abs(buttons[0] - buttons[1]) <= 1){
            System.out.println(buttons[0] + buttons[1]);
        }
        else{
            if(buttons[0] > buttons[1]){
                System.out.println(buttons[0] * 2 - 1);
            }
            else{
                System.out.println(buttons[1] * 2 - 1);
            }
        }
    }
} Main public static void main(String args[]){

        String input[] = new String[2];

        try{
            Scanner scanner = new Scanner(System.in);
            input = scanner.nextLine().split(" ");
        } catch(InputMismatchException e){
            System.out.println(e);
        }

        int buttons[] = new int[2];
        for(int i = 0; i < input.length; i++){
            buttons[i] = Integer.parseInt(input[i]);
        }

        if(Math.abs(buttons[0] - buttons[1]) <= 1){
            System.out.println(buttons[0] + buttons[1]);
        }
        else{
            if(buttons[0] > buttons[1]){
                System.out.println(buttons[0] * 2 - 1);
            }
            else{
                System.out.println(buttons[1] * 2 - 1);
            }
        }
    } main {

        String input[] = new String[2];

        try{
            Scanner scanner = new Scanner(System.in);
            input = scanner.nextLine().split(" ");
        } catch(InputMismatchException e){
            System.out.println(e);
        }

        int buttons[] = new int[2];
        for(int i = 0; i < input.length; i++){
            buttons[i] = Integer.parseInt(input[i]);
        }

        if(Math.abs(buttons[0] - buttons[1]) <= 1){
            System.out.println(buttons[0] + buttons[1]);
        }
        else{
            if(buttons[0] > buttons[1]){
                System.out.println(buttons[0] * 2 - 1);
            }
            else{
                System.out.println(buttons[1] * 2 - 1);
            }
        }
    } String input[] = new String[2]; input new String[2] 2 try{
            Scanner scanner = new Scanner(System.in);
            input = scanner.nextLine().split(" ");
        } catch(InputMismatchException e){
            System.out.println(e);
        } catch(InputMismatchException e){
            System.out.println(e);
        } InputMismatchException e {
            System.out.println(e);
        } System.out.println(e) System.out.println System.out System System.out e {
            Scanner scanner = new Scanner(System.in);
            input = scanner.nextLine().split(" ");
        } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) input = scanner.nextLine().split(" ") input scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " int buttons[] = new int[2]; buttons new int[2] 2 for(int i = 0; i < input.length; i++){
            buttons[i] = Integer.parseInt(input[i]);
        } int i = 0; int i = 0; i 0 i < input.length i input.length input input.length i++ i++ i {
            buttons[i] = Integer.parseInt(input[i]);
        } {
            buttons[i] = Integer.parseInt(input[i]);
        } buttons[i] = Integer.parseInt(input[i]) buttons[i] buttons i Integer.parseInt(input[i]) Integer.parseInt Integer input[i] input i if(Math.abs(buttons[0] - buttons[1]) <= 1){
            System.out.println(buttons[0] + buttons[1]);
        }
        else{
            if(buttons[0] > buttons[1]){
                System.out.println(buttons[0] * 2 - 1);
            }
            else{
                System.out.println(buttons[1] * 2 - 1);
            }
        } Math.abs(buttons[0] - buttons[1]) <= 1 Math.abs(buttons[0] - buttons[1]) Math.abs Math buttons[0] - buttons[1] buttons[0] buttons 0 buttons[1] buttons 1 1 {
            System.out.println(buttons[0] + buttons[1]);
        } System.out.println(buttons[0] + buttons[1]) System.out.println System.out System System.out buttons[0] + buttons[1] buttons[0] buttons 0 buttons[1] buttons 1 {
            if(buttons[0] > buttons[1]){
                System.out.println(buttons[0] * 2 - 1);
            }
            else{
                System.out.println(buttons[1] * 2 - 1);
            }
        } if(buttons[0] > buttons[1]){
                System.out.println(buttons[0] * 2 - 1);
            }
            else{
                System.out.println(buttons[1] * 2 - 1);
            } buttons[0] > buttons[1] buttons[0] buttons 0 buttons[1] buttons 1 {
                System.out.println(buttons[0] * 2 - 1);
            } System.out.println(buttons[0] * 2 - 1) System.out.println System.out System System.out buttons[0] * 2 - 1 buttons[0] * 2 buttons[0] buttons 0 2 1 {
                System.out.println(buttons[1] * 2 - 1);
            } System.out.println(buttons[1] * 2 - 1) System.out.println System.out System System.out buttons[1] * 2 - 1 buttons[1] * 2 buttons[1] buttons 1 2 1 String args[] args public class Main{
    public static void main(String args[]){

        String input[] = new String[2];

        try{
            Scanner scanner = new Scanner(System.in);
            input = scanner.nextLine().split(" ");
        } catch(InputMismatchException e){
            System.out.println(e);
        }

        int buttons[] = new int[2];
        for(int i = 0; i < input.length; i++){
            buttons[i] = Integer.parseInt(input[i]);
        }

        if(Math.abs(buttons[0] - buttons[1]) <= 1){
            System.out.println(buttons[0] + buttons[1]);
        }
        else{
            if(buttons[0] > buttons[1]){
                System.out.println(buttons[0] * 2 - 1);
            }
            else{
                System.out.println(buttons[1] * 2 - 1);
            }
        }
    }
} public class Main{
    public static void main(String args[]){

        String input[] = new String[2];

        try{
            Scanner scanner = new Scanner(System.in);
            input = scanner.nextLine().split(" ");
        } catch(InputMismatchException e){
            System.out.println(e);
        }

        int buttons[] = new int[2];
        for(int i = 0; i < input.length; i++){
            buttons[i] = Integer.parseInt(input[i]);
        }

        if(Math.abs(buttons[0] - buttons[1]) <= 1){
            System.out.println(buttons[0] + buttons[1]);
        }
        else{
            if(buttons[0] > buttons[1]){
                System.out.println(buttons[0] * 2 - 1);
            }
            else{
                System.out.println(buttons[1] * 2 - 1);
            }
        }
    }
} Main
import java.util.Scanner;
import java.util.InputMismatchException;

public class Main{
    public static void main(String args[]){

        String input[] = new String[2];

        try{
            Scanner scanner = new Scanner(System.in);
            input = scanner.nextLine().split(" ");
        } catch(InputMismatchException e){
            System.out.println(e);
        }

        int buttons[] = new int[2];
        for(int i = 0; i < input.length; i++){
            buttons[i] = Integer.parseInt(input[i]);
        }

        if(Math.abs(buttons[0] - buttons[1]) <= 1){
            System.out.println(buttons[0] + buttons[1]);
        }
        else{
            if(buttons[0] > buttons[1]){
                System.out.println(buttons[0] * 2 - 1);
            }
            else{
                System.out.println(buttons[1] * 2 - 1);
            }
        }
    }
}
