import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());

		int total = 0;
		for(int i=0; i<2; i++) {
			if(A >=B) {
				total += A;
				A--;
			} else {
				total += B;
				B--;
			}
		}
		System.out.println(total);

	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());

		int total = 0;
		for(int i=0; i<2; i++) {
			if(A >=B) {
				total += A;
				A--;
			} else {
				total += B;
				B--;
			}
		}
		System.out.println(total);

	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());

		int total = 0;
		for(int i=0; i<2; i++) {
			if(A >=B) {
				total += A;
				A--;
			} else {
				total += B;
				B--;
			}
		}
		System.out.println(total);

	} main {
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());

		int total = 0;
		for(int i=0; i<2; i++) {
			if(A >=B) {
				total += A;
				A--;
			} else {
				total += B;
				B--;
			}
		}
		System.out.println(total);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = Integer.parseInt(sc.next()); A Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int B = Integer.parseInt(sc.next()); B Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int total = 0; total 0 for(int i=0; i<2; i++) {
			if(A >=B) {
				total += A;
				A--;
			} else {
				total += B;
				B--;
			}
		} int i=0; int i=0; i 0 i<2 i 2 i++ i++ i {
			if(A >=B) {
				total += A;
				A--;
			} else {
				total += B;
				B--;
			}
		} {
			if(A >=B) {
				total += A;
				A--;
			} else {
				total += B;
				B--;
			}
		} if(A >=B) {
				total += A;
				A--;
			} else {
				total += B;
				B--;
			} A >=B A B {
				total += A;
				A--;
			} total += A total A A-- A {
				total += B;
				B--;
			} total += B total B B-- B System.out.println(total) System.out.println System.out System System.out total String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());

		int total = 0;
		for(int i=0; i<2; i++) {
			if(A >=B) {
				total += A;
				A--;
			} else {
				total += B;
				B--;
			}
		}
		System.out.println(total);

	}
}
