import java.util.*;

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

        int a = sc.nextInt();
        int b = sc.nextInt();

        System.out.print(task(a,b));
    }

    public static int task(int a,int b){
        int x = Math.max(a+(a-1),b+(b-1));
        int y = Math.max(a + b,x);
        return y;
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        System.out.print(task(a,b));
    }

    public static int task(int a,int b){
        int x = Math.max(a+(a-1),b+(b-1));
        int y = Math.max(a + b,x);
        return y;
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        System.out.print(task(a,b));
    } main {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        System.out.print(task(a,b));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc System.out.print(task(a,b)) System.out.print System.out System System.out task(a,b) task a b String[] args args public static int task(int a,int b){
        int x = Math.max(a+(a-1),b+(b-1));
        int y = Math.max(a + b,x);
        return y;
    } task {
        int x = Math.max(a+(a-1),b+(b-1));
        int y = Math.max(a + b,x);
        return y;
    } int x = Math.max(a+(a-1),b+(b-1)); x Math.max(a+(a-1),b+(b-1)) Math.max Math a+(a-1) a (a-1) a 1 b+(b-1) b (b-1) b 1 int y = Math.max(a + b,x); y Math.max(a + b,x) Math.max Math a + b a b x return y; y int a a int b b
import java.util.*;

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

        int a = sc.nextInt();
        int b = sc.nextInt();

        System.out.print(task(a,b));
    }

    public static int task(int a,int b){
        int x = Math.max(a+(a-1),b+(b-1));
        int y = Math.max(a + b,x);
        return y;
    }
}