import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

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

		int maxAB = Math.max(A, B);
		int minAB = Math.min(A, B);

		if (maxAB > minAB + 1) {
			System.out.println(maxAB + maxAB - 1);
		} else {
			System.out.println(maxAB + minAB);
		}
	}

} import java.util.Scanner; Scanner 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 maxAB = Math.max(A, B);
		int minAB = Math.min(A, B);

		if (maxAB > minAB + 1) {
			System.out.println(maxAB + maxAB - 1);
		} else {
			System.out.println(maxAB + minAB);
		}
	}

} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

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

		int maxAB = Math.max(A, B);
		int minAB = Math.min(A, B);

		if (maxAB > minAB + 1) {
			System.out.println(maxAB + maxAB - 1);
		} else {
			System.out.println(maxAB + minAB);
		}
	} main {

		Scanner sc = new Scanner(System.in);

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

		int maxAB = Math.max(A, B);
		int minAB = Math.min(A, B);

		if (maxAB > minAB + 1) {
			System.out.println(maxAB + maxAB - 1);
		} else {
			System.out.println(maxAB + minAB);
		}
	} 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 maxAB = Math.max(A, B); maxAB Math.max(A, B) Math.max Math A B int minAB = Math.min(A, B); minAB Math.min(A, B) Math.min Math A B if (maxAB > minAB + 1) {
			System.out.println(maxAB + maxAB - 1);
		} else {
			System.out.println(maxAB + minAB);
		} maxAB > minAB + 1 maxAB minAB + 1 minAB 1 {
			System.out.println(maxAB + maxAB - 1);
		} System.out.println(maxAB + maxAB - 1) System.out.println System.out System System.out maxAB + maxAB - 1 maxAB + maxAB maxAB maxAB 1 {
			System.out.println(maxAB + minAB);
		} System.out.println(maxAB + minAB) System.out.println System.out System System.out maxAB + minAB maxAB minAB 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 maxAB = Math.max(A, B);
		int minAB = Math.min(A, B);

		if (maxAB > minAB + 1) {
			System.out.println(maxAB + maxAB - 1);
		} else {
			System.out.println(maxAB + minAB);
		}
	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

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

		int maxAB = Math.max(A, B);
		int minAB = Math.min(A, B);

		if (maxAB > minAB + 1) {
			System.out.println(maxAB + maxAB - 1);
		} else {
			System.out.println(maxAB + minAB);
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

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

		int maxAB = Math.max(A, B);
		int minAB = Math.min(A, B);

		if (maxAB > minAB + 1) {
			System.out.println(maxAB + maxAB - 1);
		} else {
			System.out.println(maxAB + minAB);
		}
	}

}