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 n = 0;

		for (int i = 0; i < 2; i++) {
			if (a >= b) {
				n += a;
				a--;
			} else {
				n += b;
				b--;
			}
		}
		System.out.print(n);
	}
} 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 n = 0;

		for (int i = 0; i < 2; i++) {
			if (a >= b) {
				n += a;
				a--;
			} else {
				n += b;
				b--;
			}
		}
		System.out.print(n);
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int n = 0;

		for (int i = 0; i < 2; i++) {
			if (a >= b) {
				n += a;
				a--;
			} else {
				n += b;
				b--;
			}
		}
		System.out.print(n);
	} main {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int n = 0;

		for (int i = 0; i < 2; i++) {
			if (a >= b) {
				n += a;
				a--;
			} else {
				n += b;
				b--;
			}
		}
		System.out.print(n);
	} 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 n = 0; n 0 for (int i = 0; i < 2; i++) {
			if (a >= b) {
				n += a;
				a--;
			} else {
				n += b;
				b--;
			}
		} int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
			if (a >= b) {
				n += a;
				a--;
			} else {
				n += b;
				b--;
			}
		} {
			if (a >= b) {
				n += a;
				a--;
			} else {
				n += b;
				b--;
			}
		} if (a >= b) {
				n += a;
				a--;
			} else {
				n += b;
				b--;
			} a >= b a b {
				n += a;
				a--;
			} n += a n a a-- a {
				n += b;
				b--;
			} n += b n b b-- b System.out.print(n) System.out.print System.out System System.out n 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 n = 0;

		for (int i = 0; i < 2; i++) {
			if (a >= b) {
				n += a;
				a--;
			} else {
				n += b;
				b--;
			}
		}
		System.out.print(n);
	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int n = 0;

		for (int i = 0; i < 2; i++) {
			if (a >= b) {
				n += a;
				a--;
			} else {
				n += b;
				b--;
			}
		}
		System.out.print(n);
	}
} 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 n = 0;

		for (int i = 0; i < 2; i++) {
			if (a >= b) {
				n += a;
				a--;
			} else {
				n += b;
				b--;
			}
		}
		System.out.print(n);
	}
}