import java.util.Scanner;

/**
 * Created by dezhonger on 2019/4/13
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int a = scanner.nextInt();
        int b = scanner.nextInt();
        long r = 0;
        if (a > b) {
            r += a;
            a--;

        } else {
            r+= b;
            b--;
        }
        r += Math.max(a, b);
        System.out.println(r);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int a = scanner.nextInt();
        int b = scanner.nextInt();
        long r = 0;
        if (a > b) {
            r += a;
            a--;

        } else {
            r+= b;
            b--;
        }
        r += Math.max(a, b);
        System.out.println(r);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int a = scanner.nextInt();
        int b = scanner.nextInt();
        long r = 0;
        if (a > b) {
            r += a;
            a--;

        } else {
            r+= b;
            b--;
        }
        r += Math.max(a, b);
        System.out.println(r);
    } main {
        Scanner scanner = new Scanner(System.in);

        int a = scanner.nextInt();
        int b = scanner.nextInt();
        long r = 0;
        if (a > b) {
            r += a;
            a--;

        } else {
            r+= b;
            b--;
        }
        r += Math.max(a, b);
        System.out.println(r);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner long r = 0; r 0 if (a > b) {
            r += a;
            a--;

        } else {
            r+= b;
            b--;
        } a > b a b {
            r += a;
            a--;

        } r += a r a a-- a {
            r+= b;
            b--;
        } r+= b r b b-- b r += Math.max(a, b) r Math.max(a, b) Math.max Math 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 scanner = new Scanner(System.in);

        int a = scanner.nextInt();
        int b = scanner.nextInt();
        long r = 0;
        if (a > b) {
            r += a;
            a--;

        } else {
            r+= b;
            b--;
        }
        r += Math.max(a, b);
        System.out.println(r);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int a = scanner.nextInt();
        int b = scanner.nextInt();
        long r = 0;
        if (a > b) {
            r += a;
            a--;

        } else {
            r+= b;
            b--;
        }
        r += Math.max(a, b);
        System.out.println(r);
    }
} Main
import java.util.Scanner;

/**
 * Created by dezhonger on 2019/4/13
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int a = scanner.nextInt();
        int b = scanner.nextInt();
        long r = 0;
        if (a > b) {
            r += a;
            a--;

        } else {
            r+= b;
            b--;
        }
        r += Math.max(a, b);
        System.out.println(r);
    }
}
