import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		try (Scanner in = new Scanner(System.in)) {
			int A = in.nextInt();
			int B = in.nextInt();
			int ans = 0;
			for (int i = 0; i < 2; i++) {
				if (A <= B) {
					ans += B;
					B--;
				} else {
					ans += A;
					A--;
				}
			}
			
			System.out.println(ans);
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		try (Scanner in = new Scanner(System.in)) {
			int A = in.nextInt();
			int B = in.nextInt();
			int ans = 0;
			for (int i = 0; i < 2; i++) {
				if (A <= B) {
					ans += B;
					B--;
				} else {
					ans += A;
					A--;
				}
			}
			
			System.out.println(ans);
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

} Main public static void main(String[] args) {
		try (Scanner in = new Scanner(System.in)) {
			int A = in.nextInt();
			int B = in.nextInt();
			int ans = 0;
			for (int i = 0; i < 2; i++) {
				if (A <= B) {
					ans += B;
					B--;
				} else {
					ans += A;
					A--;
				}
			}
			
			System.out.println(ans);
		} catch (Exception e) {
			// TODO: handle exception
		}
	} main {
		try (Scanner in = new Scanner(System.in)) {
			int A = in.nextInt();
			int B = in.nextInt();
			int ans = 0;
			for (int i = 0; i < 2; i++) {
				if (A <= B) {
					ans += B;
					B--;
				} else {
					ans += A;
					A--;
				}
			}
			
			System.out.println(ans);
		} catch (Exception e) {
			// TODO: handle exception
		}
	} try (Scanner in = new Scanner(System.in)) {
			int A = in.nextInt();
			int B = in.nextInt();
			int ans = 0;
			for (int i = 0; i < 2; i++) {
				if (A <= B) {
					ans += B;
					B--;
				} else {
					ans += A;
					A--;
				}
			}
			
			System.out.println(ans);
		} catch (Exception e) {
			// TODO: handle exception
		} catch (Exception e) {
			// TODO: handle exception
		} Exception e {
			// TODO: handle exception
		} {
			int A = in.nextInt();
			int B = in.nextInt();
			int ans = 0;
			for (int i = 0; i < 2; i++) {
				if (A <= B) {
					ans += B;
					B--;
				} else {
					ans += A;
					A--;
				}
			}
			
			System.out.println(ans);
		} Scanner in = new Scanner(System.in) Scanner in = new Scanner(System.in) new Scanner(System.in) int A = in.nextInt(); A in.nextInt() in.nextInt in int B = in.nextInt(); B in.nextInt() in.nextInt in int ans = 0; ans 0 for (int i = 0; i < 2; i++) {
				if (A <= B) {
					ans += B;
					B--;
				} else {
					ans += A;
					A--;
				}
			} int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
				if (A <= B) {
					ans += B;
					B--;
				} else {
					ans += A;
					A--;
				}
			} {
				if (A <= B) {
					ans += B;
					B--;
				} else {
					ans += A;
					A--;
				}
			} if (A <= B) {
					ans += B;
					B--;
				} else {
					ans += A;
					A--;
				} A <= B A B {
					ans += B;
					B--;
				} ans += B ans B B-- B {
					ans += A;
					A--;
				} ans += A ans A A-- A System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

	public static void main(String[] args) {
		try (Scanner in = new Scanner(System.in)) {
			int A = in.nextInt();
			int B = in.nextInt();
			int ans = 0;
			for (int i = 0; i < 2; i++) {
				if (A <= B) {
					ans += B;
					B--;
				} else {
					ans += A;
					A--;
				}
			}
			
			System.out.println(ans);
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

} public class Main {

	public static void main(String[] args) {
		try (Scanner in = new Scanner(System.in)) {
			int A = in.nextInt();
			int B = in.nextInt();
			int ans = 0;
			for (int i = 0; i < 2; i++) {
				if (A <= B) {
					ans += B;
					B--;
				} else {
					ans += A;
					A--;
				}
			}
			
			System.out.println(ans);
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		try (Scanner in = new Scanner(System.in)) {
			int A = in.nextInt();
			int B = in.nextInt();
			int ans = 0;
			for (int i = 0; i < 2; i++) {
				if (A <= B) {
					ans += B;
					B--;
				} else {
					ans += A;
					A--;
				}
			}
			
			System.out.println(ans);
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

}
