import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		//Scanner sa = new Scanner(System.in);
		int b = sc.nextInt();
		int x=0;

		for(int i=0;i<2;i++){
			if(a >= b){
				x +=a;
				a = a-1;
			}else {
				x +=b;
				b = b-1;
			}
		}
		System.out.println(x);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		//Scanner sa = new Scanner(System.in);
		int b = sc.nextInt();
		int x=0;

		for(int i=0;i<2;i++){
			if(a >= b){
				x +=a;
				a = a-1;
			}else {
				x +=b;
				b = b-1;
			}
		}
		System.out.println(x);
	}
} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		//Scanner sa = new Scanner(System.in);
		int b = sc.nextInt();
		int x=0;

		for(int i=0;i<2;i++){
			if(a >= b){
				x +=a;
				a = a-1;
			}else {
				x +=b;
				b = b-1;
			}
		}
		System.out.println(x);
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		//Scanner sa = new Scanner(System.in);
		int b = sc.nextInt();
		int x=0;

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

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		//Scanner sa = new Scanner(System.in);
		int b = sc.nextInt();
		int x=0;

		for(int i=0;i<2;i++){
			if(a >= b){
				x +=a;
				a = a-1;
			}else {
				x +=b;
				b = b-1;
			}
		}
		System.out.println(x);
	}
} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		//Scanner sa = new Scanner(System.in);
		int b = sc.nextInt();
		int x=0;

		for(int i=0;i<2;i++){
			if(a >= b){
				x +=a;
				a = a-1;
			}else {
				x +=b;
				b = b-1;
			}
		}
		System.out.println(x);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		//Scanner sa = new Scanner(System.in);
		int b = sc.nextInt();
		int x=0;

		for(int i=0;i<2;i++){
			if(a >= b){
				x +=a;
				a = a-1;
			}else {
				x +=b;
				b = b-1;
			}
		}
		System.out.println(x);
	}
}
