import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		int sum =0;
		for ( int i=0;i<2;i++){
			if(A>B){
				sum+=A;
				A=A-1;
			}else{
				sum+=B;
				B=B-1;
			}
		}
		System.out.println(sum);

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		int sum =0;
		for ( int i=0;i<2;i++){
			if(A>B){
				sum+=A;
				A=A-1;
			}else{
				sum+=B;
				B=B-1;
			}
		}
		System.out.println(sum);

	}
} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		int sum =0;
		for ( int i=0;i<2;i++){
			if(A>B){
				sum+=A;
				A=A-1;
			}else{
				sum+=B;
				B=B-1;
			}
		}
		System.out.println(sum);

	} main {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		int sum =0;
		for ( int i=0;i<2;i++){
			if(A>B){
				sum+=A;
				A=A-1;
			}else{
				sum+=B;
				B=B-1;
			}
		}
		System.out.println(sum);

	} 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 sum =0; sum 0 for ( int i=0;i<2;i++){
			if(A>B){
				sum+=A;
				A=A-1;
			}else{
				sum+=B;
				B=B-1;
			}
		} int i=0; int i=0; i 0 i<2 i 2 i++ i++ i {
			if(A>B){
				sum+=A;
				A=A-1;
			}else{
				sum+=B;
				B=B-1;
			}
		} {
			if(A>B){
				sum+=A;
				A=A-1;
			}else{
				sum+=B;
				B=B-1;
			}
		} if(A>B){
				sum+=A;
				A=A-1;
			}else{
				sum+=B;
				B=B-1;
			} A>B A B {
				sum+=A;
				A=A-1;
			} sum+=A sum A A=A-1 A A-1 A 1 {
				sum+=B;
				B=B-1;
			} sum+=B sum B B=B-1 B B-1 B 1 System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		int sum =0;
		for ( int i=0;i<2;i++){
			if(A>B){
				sum+=A;
				A=A-1;
			}else{
				sum+=B;
				B=B-1;
			}
		}
		System.out.println(sum);

	}
} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		int sum =0;
		for ( int i=0;i<2;i++){
			if(A>B){
				sum+=A;
				A=A-1;
			}else{
				sum+=B;
				B=B-1;
			}
		}
		System.out.println(sum);

	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		int sum =0;
		for ( int i=0;i<2;i++){
			if(A>B){
				sum+=A;
				A=A-1;
			}else{
				sum+=B;
				B=B-1;
			}
		}
		System.out.println(sum);

	}
}

