import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();

		if(X==Y) {
			System.out.println(2*X);
		}else {
			if(X>Y) {
				System.out.println(2*X-1);
			}else {
				System.out.println(2*Y-1);
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();

		if(X==Y) {
			System.out.println(2*X);
		}else {
			if(X>Y) {
				System.out.println(2*X-1);
			}else {
				System.out.println(2*Y-1);
			}
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();

		if(X==Y) {
			System.out.println(2*X);
		}else {
			if(X>Y) {
				System.out.println(2*X-1);
			}else {
				System.out.println(2*Y-1);
			}
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();

		if(X==Y) {
			System.out.println(2*X);
		}else {
			if(X>Y) {
				System.out.println(2*X-1);
			}else {
				System.out.println(2*Y-1);
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int X = sc.nextInt(); X sc.nextInt() sc.nextInt sc int Y = sc.nextInt(); Y sc.nextInt() sc.nextInt sc if(X==Y) {
			System.out.println(2*X);
		}else {
			if(X>Y) {
				System.out.println(2*X-1);
			}else {
				System.out.println(2*Y-1);
			}
		} X==Y X Y {
			System.out.println(2*X);
		} System.out.println(2*X) System.out.println System.out System System.out 2*X 2 X {
			if(X>Y) {
				System.out.println(2*X-1);
			}else {
				System.out.println(2*Y-1);
			}
		} if(X>Y) {
				System.out.println(2*X-1);
			}else {
				System.out.println(2*Y-1);
			} X>Y X Y {
				System.out.println(2*X-1);
			} System.out.println(2*X-1) System.out.println System.out System System.out 2*X-1 2*X 2 X 1 {
				System.out.println(2*Y-1);
			} System.out.println(2*Y-1) System.out.println System.out System System.out 2*Y-1 2*Y 2 Y 1 String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();

		if(X==Y) {
			System.out.println(2*X);
		}else {
			if(X>Y) {
				System.out.println(2*X-1);
			}else {
				System.out.println(2*Y-1);
			}
		}
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();

		if(X==Y) {
			System.out.println(2*X);
		}else {
			if(X>Y) {
				System.out.println(2*X-1);
			}else {
				System.out.println(2*Y-1);
			}
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int Y = sc.nextInt();

		if(X==Y) {
			System.out.println(2*X);
		}else {
			if(X>Y) {
				System.out.println(2*X-1);
			}else {
				System.out.println(2*Y-1);
			}
		}
	}
}
