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 point;
		int max = Math.max(a, b);
		int min = Math.min(a, b);
		if(max == min) {
			point = max * 2;
		}else {
			point = max * 2 - 1;
		}
		System.out.println(point);
	}

} 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 point;
		int max = Math.max(a, b);
		int min = Math.min(a, b);
		if(max == min) {
			point = max * 2;
		}else {
			point = max * 2 - 1;
		}
		System.out.println(point);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int point;
		int max = Math.max(a, b);
		int min = Math.min(a, b);
		if(max == min) {
			point = max * 2;
		}else {
			point = max * 2 - 1;
		}
		System.out.println(point);
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int point;
		int max = Math.max(a, b);
		int min = Math.min(a, b);
		if(max == min) {
			point = max * 2;
		}else {
			point = max * 2 - 1;
		}
		System.out.println(point);
	} 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 point; point int max = Math.max(a, b); max Math.max(a, b) Math.max Math a b int min = Math.min(a, b); min Math.min(a, b) Math.min Math a b if(max == min) {
			point = max * 2;
		}else {
			point = max * 2 - 1;
		} max == min max min {
			point = max * 2;
		} point = max * 2 point max * 2 max 2 {
			point = max * 2 - 1;
		} point = max * 2 - 1 point max * 2 - 1 max * 2 max 2 1 System.out.println(point) System.out.println System.out System System.out point 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 point;
		int max = Math.max(a, b);
		int min = Math.min(a, b);
		if(max == min) {
			point = max * 2;
		}else {
			point = max * 2 - 1;
		}
		System.out.println(point);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int point;
		int max = Math.max(a, b);
		int min = Math.min(a, b);
		if(max == min) {
			point = max * 2;
		}else {
			point = max * 2 - 1;
		}
		System.out.println(point);
	}

} 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 point;
		int max = Math.max(a, b);
		int min = Math.min(a, b);
		if(max == min) {
			point = max * 2;
		}else {
			point = max * 2 - 1;
		}
		System.out.println(point);
	}

}
