import java.util.Scanner;
import java.util.Arrays;

public class Main{

    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);

        // input
        int a = scan.nextInt();
        int b = scan.nextInt();

        // answer
        if(a == b){
            System.out.println(a + b);
        } else {
            System.out.println(Math.max(a, b) * 2 - 1);
        }


    }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util public class Main{

    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);

        // input
        int a = scan.nextInt();
        int b = scan.nextInt();

        // answer
        if(a == b){
            System.out.println(a + b);
        } else {
            System.out.println(Math.max(a, b) * 2 - 1);
        }


    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);

        // input
        int a = scan.nextInt();
        int b = scan.nextInt();

        // answer
        if(a == b){
            System.out.println(a + b);
        } else {
            System.out.println(Math.max(a, b) * 2 - 1);
        }


    } main {
        Scanner scan = new Scanner(System.in);

        // input
        int a = scan.nextInt();
        int b = scan.nextInt();

        // answer
        if(a == b){
            System.out.println(a + b);
        } else {
            System.out.println(Math.max(a, b) * 2 - 1);
        }


    } 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 if(a == b){
            System.out.println(a + b);
        } else {
            System.out.println(Math.max(a, b) * 2 - 1);
        } a == b a b {
            System.out.println(a + b);
        } System.out.println(a + b) System.out.println System.out System System.out a + b a b {
            System.out.println(Math.max(a, b) * 2 - 1);
        } System.out.println(Math.max(a, b) * 2 - 1) System.out.println System.out System System.out Math.max(a, b) * 2 - 1 Math.max(a, b) * 2 Math.max(a, b) Math.max Math a b 2 1 String[] args args public class Main{

    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);

        // input
        int a = scan.nextInt();
        int b = scan.nextInt();

        // answer
        if(a == b){
            System.out.println(a + b);
        } else {
            System.out.println(Math.max(a, b) * 2 - 1);
        }


    }
} public class Main{

    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);

        // input
        int a = scan.nextInt();
        int b = scan.nextInt();

        // answer
        if(a == b){
            System.out.println(a + b);
        } else {
            System.out.println(Math.max(a, b) * 2 - 1);
        }


    }
} Main
import java.util.Scanner;
import java.util.Arrays;

public class Main{

    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);

        // input
        int a = scan.nextInt();
        int b = scan.nextInt();

        // answer
        if(a == b){
            System.out.println(a + b);
        } else {
            System.out.println(Math.max(a, b) * 2 - 1);
        }


    }
}