import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int A; int B; int X;
		A = scan.nextInt();
		B = scan.nextInt();
		X = 0;
		if(A>=B){
		X=X+A;
		A=A-1;
		}else if(A<=B){
			X=X+B;
			B=B-1;
		}
		if(A>=B){
		X=X+A;
		A=A-1;
		}else if(A<=B){
		X=X+B;
		B=B-1;
}
		System.out.println(X);
		scan.close();
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int A; int B; int X;
		A = scan.nextInt();
		B = scan.nextInt();
		X = 0;
		if(A>=B){
		X=X+A;
		A=A-1;
		}else if(A<=B){
			X=X+B;
			B=B-1;
		}
		if(A>=B){
		X=X+A;
		A=A-1;
		}else if(A<=B){
		X=X+B;
		B=B-1;
}
		System.out.println(X);
		scan.close();
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int A; int B; int X;
		A = scan.nextInt();
		B = scan.nextInt();
		X = 0;
		if(A>=B){
		X=X+A;
		A=A-1;
		}else if(A<=B){
			X=X+B;
			B=B-1;
		}
		if(A>=B){
		X=X+A;
		A=A-1;
		}else if(A<=B){
		X=X+B;
		B=B-1;
}
		System.out.println(X);
		scan.close();
	} main {
		Scanner scan = new Scanner(System.in);
		int A; int B; int X;
		A = scan.nextInt();
		B = scan.nextInt();
		X = 0;
		if(A>=B){
		X=X+A;
		A=A-1;
		}else if(A<=B){
			X=X+B;
			B=B-1;
		}
		if(A>=B){
		X=X+A;
		A=A-1;
		}else if(A<=B){
		X=X+B;
		B=B-1;
}
		System.out.println(X);
		scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int A; A int B; B int X; X A = scan.nextInt() A scan.nextInt() scan.nextInt scan B = scan.nextInt() B scan.nextInt() scan.nextInt scan X = 0 X 0 if(A>=B){
		X=X+A;
		A=A-1;
		}else if(A<=B){
			X=X+B;
			B=B-1;
		} A>=B A B {
		X=X+A;
		A=A-1;
		} X=X+A X X+A X A A=A-1 A A-1 A 1 if(A<=B){
			X=X+B;
			B=B-1;
		} A<=B A B {
			X=X+B;
			B=B-1;
		} X=X+B X X+B X B B=B-1 B B-1 B 1 if(A>=B){
		X=X+A;
		A=A-1;
		}else if(A<=B){
		X=X+B;
		B=B-1;
} A>=B A B {
		X=X+A;
		A=A-1;
		} X=X+A X X+A X A A=A-1 A A-1 A 1 if(A<=B){
		X=X+B;
		B=B-1;
} A<=B A B {
		X=X+B;
		B=B-1;
} X=X+B X X+B X B B=B-1 B B-1 B 1 System.out.println(X) System.out.println System.out System System.out X scan.close() scan.close scan String[] args args public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int A; int B; int X;
		A = scan.nextInt();
		B = scan.nextInt();
		X = 0;
		if(A>=B){
		X=X+A;
		A=A-1;
		}else if(A<=B){
			X=X+B;
			B=B-1;
		}
		if(A>=B){
		X=X+A;
		A=A-1;
		}else if(A<=B){
		X=X+B;
		B=B-1;
}
		System.out.println(X);
		scan.close();
	}
} public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int A; int B; int X;
		A = scan.nextInt();
		B = scan.nextInt();
		X = 0;
		if(A>=B){
		X=X+A;
		A=A-1;
		}else if(A<=B){
			X=X+B;
			B=B-1;
		}
		if(A>=B){
		X=X+A;
		A=A-1;
		}else if(A<=B){
		X=X+B;
		B=B-1;
}
		System.out.println(X);
		scan.close();
	}
} Main
import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int A; int B; int X;
		A = scan.nextInt();
		B = scan.nextInt();
		X = 0;
		if(A>=B){
		X=X+A;
		A=A-1;
		}else if(A<=B){
			X=X+B;
			B=B-1;
		}
		if(A>=B){
		X=X+A;
		A=A-1;
		}else if(A<=B){
		X=X+B;
		B=B-1;
}
		System.out.println(X);
		scan.close();
	}
}