import java.util.Scanner;

public class Main {

    public static String process(int A, int B) {
        int aTwice = A + A - 1;
        int bTwice = B + B - 1;
        int both = A + B;
        return String.valueOf(Math.max(aTwice, Math.max(bTwice, both)));
    }

    // Util func

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

        int A = sc.nextInt();
        int B = sc.nextInt();

        final String result = process(A, B);

        output(result);
    }

    private static void output(String result) {
        System.out.println(result);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static String process(int A, int B) {
        int aTwice = A + A - 1;
        int bTwice = B + B - 1;
        int both = A + B;
        return String.valueOf(Math.max(aTwice, Math.max(bTwice, both)));
    }

    // Util func

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

        int A = sc.nextInt();
        int B = sc.nextInt();

        final String result = process(A, B);

        output(result);
    }

    private static void output(String result) {
        System.out.println(result);
    }
} Main public static String process(int A, int B) {
        int aTwice = A + A - 1;
        int bTwice = B + B - 1;
        int both = A + B;
        return String.valueOf(Math.max(aTwice, Math.max(bTwice, both)));
    } process {
        int aTwice = A + A - 1;
        int bTwice = B + B - 1;
        int both = A + B;
        return String.valueOf(Math.max(aTwice, Math.max(bTwice, both)));
    } int aTwice = A + A - 1; aTwice A + A - 1 A + A A A 1 int bTwice = B + B - 1; bTwice B + B - 1 B + B B B 1 int both = A + B; both A + B A B return String.valueOf(Math.max(aTwice, Math.max(bTwice, both))); String.valueOf(Math.max(aTwice, Math.max(bTwice, both))) String.valueOf String Math.max(aTwice, Math.max(bTwice, both)) Math.max Math aTwice Math.max(bTwice, both) Math.max Math bTwice both int A A int B B public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int A = sc.nextInt();
        int B = sc.nextInt();

        final String result = process(A, B);

        output(result);
    } main {
        Scanner sc = new Scanner(System.in);

        int A = sc.nextInt();
        int B = sc.nextInt();

        final String result = process(A, B);

        output(result);
    } 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 final String result = process(A, B); result process(A, B) process A B output(result) output result String[] args args private static void output(String result) {
        System.out.println(result);
    } output {
        System.out.println(result);
    } System.out.println(result) System.out.println System.out System System.out result String result result public class Main {

    public static String process(int A, int B) {
        int aTwice = A + A - 1;
        int bTwice = B + B - 1;
        int both = A + B;
        return String.valueOf(Math.max(aTwice, Math.max(bTwice, both)));
    }

    // Util func

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

        int A = sc.nextInt();
        int B = sc.nextInt();

        final String result = process(A, B);

        output(result);
    }

    private static void output(String result) {
        System.out.println(result);
    }
} public class Main {

    public static String process(int A, int B) {
        int aTwice = A + A - 1;
        int bTwice = B + B - 1;
        int both = A + B;
        return String.valueOf(Math.max(aTwice, Math.max(bTwice, both)));
    }

    // Util func

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

        int A = sc.nextInt();
        int B = sc.nextInt();

        final String result = process(A, B);

        output(result);
    }

    private static void output(String result) {
        System.out.println(result);
    }
} Main
import java.util.Scanner;

public class Main {

    public static String process(int A, int B) {
        int aTwice = A + A - 1;
        int bTwice = B + B - 1;
        int both = A + B;
        return String.valueOf(Math.max(aTwice, Math.max(bTwice, both)));
    }

    // Util func

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

        int A = sc.nextInt();
        int B = sc.nextInt();

        final String result = process(A, B);

        output(result);
    }

    private static void output(String result) {
        System.out.println(result);
    }
}
