import java.util.Scanner;

public class Main {

    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int a = sc.nextInt(), b = sc.nextInt();
        if (a+b <= a*2-1 && b*2-1 <= a*2-1) {
            System.out.println(a*2-1);
        } else if (a*2-1 <= a+b && b*2-1 <= a+b) {
            System.out.println(a+b);
        } else {
            System.out.println(b*2-1);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int a = sc.nextInt(), b = sc.nextInt();
        if (a+b <= a*2-1 && b*2-1 <= a*2-1) {
            System.out.println(a*2-1);
        } else if (a*2-1 <= a+b && b*2-1 <= a+b) {
            System.out.println(a+b);
        } else {
            System.out.println(b*2-1);
        }
    }
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) {
        int a = sc.nextInt(), b = sc.nextInt();
        if (a+b <= a*2-1 && b*2-1 <= a*2-1) {
            System.out.println(a*2-1);
        } else if (a*2-1 <= a+b && b*2-1 <= a+b) {
            System.out.println(a+b);
        } else {
            System.out.println(b*2-1);
        }
    } main {
        int a = sc.nextInt(), b = sc.nextInt();
        if (a+b <= a*2-1 && b*2-1 <= a*2-1) {
            System.out.println(a*2-1);
        } else if (a*2-1 <= a+b && b*2-1 <= a+b) {
            System.out.println(a+b);
        } else {
            System.out.println(b*2-1);
        }
    } int a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt(); b sc.nextInt() sc.nextInt sc if (a+b <= a*2-1 && b*2-1 <= a*2-1) {
            System.out.println(a*2-1);
        } else if (a*2-1 <= a+b && b*2-1 <= a+b) {
            System.out.println(a+b);
        } else {
            System.out.println(b*2-1);
        } a+b <= a*2-1 && b*2-1 <= a*2-1 a+b <= a*2-1 a+b a b a*2-1 a*2 a 2 1 b*2-1 <= a*2-1 b*2-1 b*2 b 2 1 a*2-1 a*2 a 2 1 {
            System.out.println(a*2-1);
        } System.out.println(a*2-1) System.out.println System.out System System.out a*2-1 a*2 a 2 1 if (a*2-1 <= a+b && b*2-1 <= a+b) {
            System.out.println(a+b);
        } else {
            System.out.println(b*2-1);
        } a*2-1 <= a+b && b*2-1 <= a+b a*2-1 <= a+b a*2-1 a*2 a 2 1 a+b a b b*2-1 <= a+b b*2-1 b*2 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(b*2-1);
        } System.out.println(b*2-1) System.out.println System.out System System.out b*2-1 b*2 b 2 1 String[] args args public class Main {

    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int a = sc.nextInt(), b = sc.nextInt();
        if (a+b <= a*2-1 && b*2-1 <= a*2-1) {
            System.out.println(a*2-1);
        } else if (a*2-1 <= a+b && b*2-1 <= a+b) {
            System.out.println(a+b);
        } else {
            System.out.println(b*2-1);
        }
    }
} public class Main {

    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int a = sc.nextInt(), b = sc.nextInt();
        if (a+b <= a*2-1 && b*2-1 <= a*2-1) {
            System.out.println(a*2-1);
        } else if (a*2-1 <= a+b && b*2-1 <= a+b) {
            System.out.println(a+b);
        } else {
            System.out.println(b*2-1);
        }
    }
} Main
import java.util.Scanner;

public class Main {

    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int a = sc.nextInt(), b = sc.nextInt();
        if (a+b <= a*2-1 && b*2-1 <= a*2-1) {
            System.out.println(a*2-1);
        } else if (a*2-1 <= a+b && b*2-1 <= a+b) {
            System.out.println(a+b);
        } else {
            System.out.println(b*2-1);
        }
    }
}
