import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int p = scan.nextInt();
		int q = scan.nextInt();
		int ans=0;
		for(int i=0;i<2;i++){
			if(p>q){
				ans+=p;
				p--;
			}else{
				ans+=q;
				q--;
			}
		}
		System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int p = scan.nextInt();
		int q = scan.nextInt();
		int ans=0;
		for(int i=0;i<2;i++){
			if(p>q){
				ans+=p;
				p--;
			}else{
				ans+=q;
				q--;
			}
		}
		System.out.println(ans);
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int p = scan.nextInt();
		int q = scan.nextInt();
		int ans=0;
		for(int i=0;i<2;i++){
			if(p>q){
				ans+=p;
				p--;
			}else{
				ans+=q;
				q--;
			}
		}
		System.out.println(ans);
	} main {
		Scanner scan = new Scanner(System.in);
		int p = scan.nextInt();
		int q = scan.nextInt();
		int ans=0;
		for(int i=0;i<2;i++){
			if(p>q){
				ans+=p;
				p--;
			}else{
				ans+=q;
				q--;
			}
		}
		System.out.println(ans);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int p = scan.nextInt(); p scan.nextInt() scan.nextInt scan int q = scan.nextInt(); q scan.nextInt() scan.nextInt scan int ans=0; ans 0 for(int i=0;i<2;i++){
			if(p>q){
				ans+=p;
				p--;
			}else{
				ans+=q;
				q--;
			}
		} int i=0; int i=0; i 0 i<2 i 2 i++ i++ i {
			if(p>q){
				ans+=p;
				p--;
			}else{
				ans+=q;
				q--;
			}
		} {
			if(p>q){
				ans+=p;
				p--;
			}else{
				ans+=q;
				q--;
			}
		} if(p>q){
				ans+=p;
				p--;
			}else{
				ans+=q;
				q--;
			} p>q p q {
				ans+=p;
				p--;
			} ans+=p ans p p-- p {
				ans+=q;
				q--;
			} ans+=q ans q q-- q System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int p = scan.nextInt();
		int q = scan.nextInt();
		int ans=0;
		for(int i=0;i<2;i++){
			if(p>q){
				ans+=p;
				p--;
			}else{
				ans+=q;
				q--;
			}
		}
		System.out.println(ans);
	}
} public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int p = scan.nextInt();
		int q = scan.nextInt();
		int ans=0;
		for(int i=0;i<2;i++){
			if(p>q){
				ans+=p;
				p--;
			}else{
				ans+=q;
				q--;
			}
		}
		System.out.println(ans);
	}
} Main
import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int p = scan.nextInt();
		int q = scan.nextInt();
		int ans=0;
		for(int i=0;i<2;i++){
			if(p>q){
				ans+=p;
				p--;
			}else{
				ans+=q;
				q--;
			}
		}
		System.out.println(ans);
	}
}