import java.util.Scanner;

public class Main {

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

		int A = scan.nextInt();
		int B = scan.nextInt();
		int X = 0;
		int Y = 0;

			if (A >= B) {
				X = A;
				if (A-1 >= B) {
					Y = A-1;
				}else {
					Y = B;
				}
			} else if (A < B) {
				X = B;
				if (B-1 >= A) {
					Y = B-1;
				}else {
					Y = A;
				}
			}
		System.out.println(X+Y);
	}
} import java.util.Scanner; Scanner java.util public class Main {

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

		int A = scan.nextInt();
		int B = scan.nextInt();
		int X = 0;
		int Y = 0;

			if (A >= B) {
				X = A;
				if (A-1 >= B) {
					Y = A-1;
				}else {
					Y = B;
				}
			} else if (A < B) {
				X = B;
				if (B-1 >= A) {
					Y = B-1;
				}else {
					Y = A;
				}
			}
		System.out.println(X+Y);
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int A = scan.nextInt();
		int B = scan.nextInt();
		int X = 0;
		int Y = 0;

			if (A >= B) {
				X = A;
				if (A-1 >= B) {
					Y = A-1;
				}else {
					Y = B;
				}
			} else if (A < B) {
				X = B;
				if (B-1 >= A) {
					Y = B-1;
				}else {
					Y = A;
				}
			}
		System.out.println(X+Y);
	} main {
		Scanner scan = new Scanner(System.in);

		int A = scan.nextInt();
		int B = scan.nextInt();
		int X = 0;
		int Y = 0;

			if (A >= B) {
				X = A;
				if (A-1 >= B) {
					Y = A-1;
				}else {
					Y = B;
				}
			} else if (A < B) {
				X = B;
				if (B-1 >= A) {
					Y = B-1;
				}else {
					Y = A;
				}
			}
		System.out.println(X+Y);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int A = scan.nextInt(); A scan.nextInt() scan.nextInt scan int B = scan.nextInt(); B scan.nextInt() scan.nextInt scan int X = 0; X 0 int Y = 0; Y 0 if (A >= B) {
				X = A;
				if (A-1 >= B) {
					Y = A-1;
				}else {
					Y = B;
				}
			} else if (A < B) {
				X = B;
				if (B-1 >= A) {
					Y = B-1;
				}else {
					Y = A;
				}
			} A >= B A B {
				X = A;
				if (A-1 >= B) {
					Y = A-1;
				}else {
					Y = B;
				}
			} X = A X A if (A-1 >= B) {
					Y = A-1;
				}else {
					Y = B;
				} A-1 >= B A-1 A 1 B {
					Y = A-1;
				} Y = A-1 Y A-1 A 1 {
					Y = B;
				} Y = B Y B if (A < B) {
				X = B;
				if (B-1 >= A) {
					Y = B-1;
				}else {
					Y = A;
				}
			} A < B A B {
				X = B;
				if (B-1 >= A) {
					Y = B-1;
				}else {
					Y = A;
				}
			} X = B X B if (B-1 >= A) {
					Y = B-1;
				}else {
					Y = A;
				} B-1 >= A B-1 B 1 A {
					Y = B-1;
				} Y = B-1 Y B-1 B 1 {
					Y = A;
				} Y = A Y A System.out.println(X+Y) System.out.println System.out System System.out X+Y X Y String[] args args public class Main {

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

		int A = scan.nextInt();
		int B = scan.nextInt();
		int X = 0;
		int Y = 0;

			if (A >= B) {
				X = A;
				if (A-1 >= B) {
					Y = A-1;
				}else {
					Y = B;
				}
			} else if (A < B) {
				X = B;
				if (B-1 >= A) {
					Y = B-1;
				}else {
					Y = A;
				}
			}
		System.out.println(X+Y);
	}
} public class Main {

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

		int A = scan.nextInt();
		int B = scan.nextInt();
		int X = 0;
		int Y = 0;

			if (A >= B) {
				X = A;
				if (A-1 >= B) {
					Y = A-1;
				}else {
					Y = B;
				}
			} else if (A < B) {
				X = B;
				if (B-1 >= A) {
					Y = B-1;
				}else {
					Y = A;
				}
			}
		System.out.println(X+Y);
	}
} Main
import java.util.Scanner;

public class Main {

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

		int A = scan.nextInt();
		int B = scan.nextInt();
		int X = 0;
		int Y = 0;

			if (A >= B) {
				X = A;
				if (A-1 >= B) {
					Y = A-1;
				}else {
					Y = B;
				}
			} else if (A < B) {
				X = B;
				if (B-1 >= A) {
					Y = B-1;
				}else {
					Y = A;
				}
			}
		System.out.println(X+Y);
	}
}