import java.util.Scanner;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        sc.close();
        int max = 0;

        if (A >= B) {
            max = Math.max(A + (A - 1), A + B);
        } else if (A < B) {
            max = Math.max(B + (B - 1), A + B);
        }
        System.out.println(max);
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        sc.close();
        int max = 0;

        if (A >= B) {
            max = Math.max(A + (A - 1), A + B);
        } else if (A < B) {
            max = Math.max(B + (B - 1), A + B);
        }
        System.out.println(max);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        sc.close();
        int max = 0;

        if (A >= B) {
            max = Math.max(A + (A - 1), A + B);
        } else if (A < B) {
            max = Math.max(B + (B - 1), A + B);
        }
        System.out.println(max);
    } main {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        sc.close();
        int max = 0;

        if (A >= B) {
            max = Math.max(A + (A - 1), A + B);
        } else if (A < B) {
            max = Math.max(B + (B - 1), A + B);
        }
        System.out.println(max);
    } 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 sc.close() sc.close sc int max = 0; max 0 if (A >= B) {
            max = Math.max(A + (A - 1), A + B);
        } else if (A < B) {
            max = Math.max(B + (B - 1), A + B);
        } A >= B A B {
            max = Math.max(A + (A - 1), A + B);
        } max = Math.max(A + (A - 1), A + B) max Math.max(A + (A - 1), A + B) Math.max Math A + (A - 1) A (A - 1) A 1 A + B A B if (A < B) {
            max = Math.max(B + (B - 1), A + B);
        } A < B A B {
            max = Math.max(B + (B - 1), A + B);
        } max = Math.max(B + (B - 1), A + B) max Math.max(B + (B - 1), A + B) Math.max Math B + (B - 1) B (B - 1) B 1 A + B A B System.out.println(max) System.out.println System.out System System.out max String[] args args
import java.util.Scanner;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        sc.close();
        int max = 0;

        if (A >= B) {
            max = Math.max(A + (A - 1), A + B);
        } else if (A < B) {
            max = Math.max(B + (B - 1), A + B);
        }
        System.out.println(max);
    }
}