import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int X = scan.nextInt();
		int Y = scan.nextInt();
		int sum = 0;

		for (int i = 0; i < 2; i++) {

			if (X >= Y) {

				sum += X;
				X = X - 1;

			} else {

				sum += Y;
				Y = Y - 1;
			}

		}

		
		System.out.println(sum);
		
	}

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

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int X = scan.nextInt();
		int Y = scan.nextInt();
		int sum = 0;

		for (int i = 0; i < 2; i++) {

			if (X >= Y) {

				sum += X;
				X = X - 1;

			} else {

				sum += Y;
				Y = Y - 1;
			}

		}

		
		System.out.println(sum);
		
	}

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

		Scanner scan = new Scanner(System.in);

		int X = scan.nextInt();
		int Y = scan.nextInt();
		int sum = 0;

		for (int i = 0; i < 2; i++) {

			if (X >= Y) {

				sum += X;
				X = X - 1;

			} else {

				sum += Y;
				Y = Y - 1;
			}

		}

		
		System.out.println(sum);
		
	} main {

		Scanner scan = new Scanner(System.in);

		int X = scan.nextInt();
		int Y = scan.nextInt();
		int sum = 0;

		for (int i = 0; i < 2; i++) {

			if (X >= Y) {

				sum += X;
				X = X - 1;

			} else {

				sum += Y;
				Y = Y - 1;
			}

		}

		
		System.out.println(sum);
		
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int X = scan.nextInt(); X scan.nextInt() scan.nextInt scan int Y = scan.nextInt(); Y scan.nextInt() scan.nextInt scan int sum = 0; sum 0 for (int i = 0; i < 2; i++) {

			if (X >= Y) {

				sum += X;
				X = X - 1;

			} else {

				sum += Y;
				Y = Y - 1;
			}

		} int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {

			if (X >= Y) {

				sum += X;
				X = X - 1;

			} else {

				sum += Y;
				Y = Y - 1;
			}

		} {

			if (X >= Y) {

				sum += X;
				X = X - 1;

			} else {

				sum += Y;
				Y = Y - 1;
			}

		} if (X >= Y) {

				sum += X;
				X = X - 1;

			} else {

				sum += Y;
				Y = Y - 1;
			} X >= Y X Y {

				sum += X;
				X = X - 1;

			} sum += X sum X X = X - 1 X X - 1 X 1 {

				sum += Y;
				Y = Y - 1;
			} sum += Y sum Y Y = Y - 1 Y Y - 1 Y 1 System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int X = scan.nextInt();
		int Y = scan.nextInt();
		int sum = 0;

		for (int i = 0; i < 2; i++) {

			if (X >= Y) {

				sum += X;
				X = X - 1;

			} else {

				sum += Y;
				Y = Y - 1;
			}

		}

		
		System.out.println(sum);
		
	}

} public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int X = scan.nextInt();
		int Y = scan.nextInt();
		int sum = 0;

		for (int i = 0; i < 2; i++) {

			if (X >= Y) {

				sum += X;
				X = X - 1;

			} else {

				sum += Y;
				Y = Y - 1;
			}

		}

		
		System.out.println(sum);
		
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int X = scan.nextInt();
		int Y = scan.nextInt();
		int sum = 0;

		for (int i = 0; i < 2; i++) {

			if (X >= Y) {

				sum += X;
				X = X - 1;

			} else {

				sum += Y;
				Y = Y - 1;
			}

		}

		
		System.out.println(sum);
		
	}

}
