import java.util.Scanner;

class Main{

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);			//文字の入力
		int a = sc.nextInt();
		int b  =sc.nextInt();
		
		int ans = 0;
		if(a > b){
			ans = a+a-1;
		}else if(b > a){
			ans = 2*b-1;
		}else{
			ans = 2 * a;
		}
		System.out.print(ans);
	}
	


}


class Pair implements Comparable{
	int from;
	int end;
	@Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return from - otherpair.from;
	}
}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);			//文字の入力
		int a = sc.nextInt();
		int b  =sc.nextInt();
		
		int ans = 0;
		if(a > b){
			ans = a+a-1;
		}else if(b > a){
			ans = 2*b-1;
		}else{
			ans = 2 * a;
		}
		System.out.print(ans);
	}
	


} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);			//文字の入力
		int a = sc.nextInt();
		int b  =sc.nextInt();
		
		int ans = 0;
		if(a > b){
			ans = a+a-1;
		}else if(b > a){
			ans = 2*b-1;
		}else{
			ans = 2 * a;
		}
		System.out.print(ans);
	} main {
		Scanner sc = new Scanner(System.in);			//文字の入力
		int a = sc.nextInt();
		int b  =sc.nextInt();
		
		int ans = 0;
		if(a > b){
			ans = a+a-1;
		}else if(b > a){
			ans = 2*b-1;
		}else{
			ans = 2 * a;
		}
		System.out.print(ans);
	} 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 ans = 0; ans 0 if(a > b){
			ans = a+a-1;
		}else if(b > a){
			ans = 2*b-1;
		}else{
			ans = 2 * a;
		} a > b a b {
			ans = a+a-1;
		} ans = a+a-1 ans a+a-1 a+a a a 1 if(b > a){
			ans = 2*b-1;
		}else{
			ans = 2 * a;
		} b > a b a {
			ans = 2*b-1;
		} ans = 2*b-1 ans 2*b-1 2*b 2 b 1 {
			ans = 2 * a;
		} ans = 2 * a ans 2 * a 2 a System.out.print(ans) System.out.print System.out System System.out ans String[] args args class Pair implements Comparable{
	int from;
	int end;
	@Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return from - otherpair.from;
	}
} Pair int from; from int end; end @Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return from - otherpair.from;
	} compareTo {
		Pair otherpair = (Pair)other;

		return from - otherpair.from;
	} Pair otherpair = (Pair)other; otherpair (Pair)other return from - otherpair.from; from - otherpair.from from otherpair.from otherpair otherpair.from Object other other Comparable
import java.util.Scanner;

class Main{

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);			//文字の入力
		int a = sc.nextInt();
		int b  =sc.nextInt();
		
		int ans = 0;
		if(a > b){
			ans = a+a-1;
		}else if(b > a){
			ans = 2*b-1;
		}else{
			ans = 2 * a;
		}
		System.out.print(ans);
	}
	


}


class Pair implements Comparable{
	int from;
	int end;
	@Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return from - otherpair.from;
	}
}


