import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int a = sc.nextInt();
        int b = sc.nextInt();
        int r=(2*a-1)>(2*b-1)?(2*a-1):(2*b-1);
        r=r>(a+b)?r:(a+b);
        // 出力
        System.out.println(r);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int a = sc.nextInt();
        int b = sc.nextInt();
        int r=(2*a-1)>(2*b-1)?(2*a-1):(2*b-1);
        r=r>(a+b)?r:(a+b);
        // 出力
        System.out.println(r);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int a = sc.nextInt();
        int b = sc.nextInt();
        int r=(2*a-1)>(2*b-1)?(2*a-1):(2*b-1);
        r=r>(a+b)?r:(a+b);
        // 出力
        System.out.println(r);
    } main {
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int a = sc.nextInt();
        int b = sc.nextInt();
        int r=(2*a-1)>(2*b-1)?(2*a-1):(2*b-1);
        r=r>(a+b)?r:(a+b);
        // 出力
        System.out.println(r);
    } 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 int r=(2*a-1)>(2*b-1)?(2*a-1):(2*b-1); r (2*a-1)>(2*b-1)?(2*a-1):(2*b-1) (2*a-1)>(2*b-1) (2*a-1) 2*a 2 a 1 (2*b-1) 2*b 2 b 1 (2*a-1) 2*a 2 a 1 (2*b-1) 2*b 2 b 1 r=r>(a+b)?r:(a+b) r r>(a+b)?r:(a+b) r>(a+b) r (a+b) a b r (a+b) a b System.out.println(r) System.out.println System.out System System.out r String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int a = sc.nextInt();
        int b = sc.nextInt();
        int r=(2*a-1)>(2*b-1)?(2*a-1):(2*b-1);
        r=r>(a+b)?r:(a+b);
        // 出力
        System.out.println(r);
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int a = sc.nextInt();
        int b = sc.nextInt();
        int r=(2*a-1)>(2*b-1)?(2*a-1):(2*b-1);
        r=r>(a+b)?r:(a+b);
        // 出力
        System.out.println(r);
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int a = sc.nextInt();
        int b = sc.nextInt();
        int r=(2*a-1)>(2*b-1)?(2*a-1):(2*b-1);
        r=r>(a+b)?r:(a+b);
        // 出力
        System.out.println(r);
    }
}