import java.util.Scanner;

public class Main {

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

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

public class Main {

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