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

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





	}
} 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 result = 0;

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





	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();

		int result = 0;

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





	} main {
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();

		int result = 0;

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





	} 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 result = 0; result 0 if(A == B) {
			result = A + B;
		}else if(A >B) {
			result = A + A - 1;
		}else if(B>A) {
			result = B + B -1;
		} A == B A B {
			result = A + B;
		} result = A + B result A + B A B if(A >B) {
			result = A + A - 1;
		}else if(B>A) {
			result = B + B -1;
		} A >B A B {
			result = A + A - 1;
		} result = A + A - 1 result A + A - 1 A + A A A 1 if(B>A) {
			result = B + B -1;
		} B>A B A {
			result = B + B -1;
		} result = B + B -1 result B + B -1 B + B B B 1 System.out.println(result) System.out.println System.out System System.out result 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 result = 0;

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





	}
} public class Main {

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

		int result = 0;

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





	}
} 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 result = 0;

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





	}
}
