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 A1 = 0;
		int B1 = 0;
		int sum = 0;
		sc.close();
	if(A > B) {
		A1 = A - 1 ;
		if (A1 > B) {
			sum = A + A1;
		}
		else {
			sum = A + B;
		}
	}
	
	else if(A < B) {
		B1 = B - 1;
		if(B1 >A) {
			sum = B + B1;
		}
		else {
			sum = A + B;
		}
	}
	else {
		sum = A+B;
	}
		System.out.print(sum);
	}
} 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 A1 = 0;
		int B1 = 0;
		int sum = 0;
		sc.close();
	if(A > B) {
		A1 = A - 1 ;
		if (A1 > B) {
			sum = A + A1;
		}
		else {
			sum = A + B;
		}
	}
	
	else if(A < B) {
		B1 = B - 1;
		if(B1 >A) {
			sum = B + B1;
		}
		else {
			sum = A + B;
		}
	}
	else {
		sum = A+B;
	}
		System.out.print(sum);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int A1 = 0;
		int B1 = 0;
		int sum = 0;
		sc.close();
	if(A > B) {
		A1 = A - 1 ;
		if (A1 > B) {
			sum = A + A1;
		}
		else {
			sum = A + B;
		}
	}
	
	else if(A < B) {
		B1 = B - 1;
		if(B1 >A) {
			sum = B + B1;
		}
		else {
			sum = A + B;
		}
	}
	else {
		sum = A+B;
	}
		System.out.print(sum);
	} main {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int A1 = 0;
		int B1 = 0;
		int sum = 0;
		sc.close();
	if(A > B) {
		A1 = A - 1 ;
		if (A1 > B) {
			sum = A + A1;
		}
		else {
			sum = A + B;
		}
	}
	
	else if(A < B) {
		B1 = B - 1;
		if(B1 >A) {
			sum = B + B1;
		}
		else {
			sum = A + B;
		}
	}
	else {
		sum = A+B;
	}
		System.out.print(sum);
	} 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 A1 = 0; A1 0 int B1 = 0; B1 0 int sum = 0; sum 0 sc.close() sc.close sc if(A > B) {
		A1 = A - 1 ;
		if (A1 > B) {
			sum = A + A1;
		}
		else {
			sum = A + B;
		}
	}
	
	else if(A < B) {
		B1 = B - 1;
		if(B1 >A) {
			sum = B + B1;
		}
		else {
			sum = A + B;
		}
	}
	else {
		sum = A+B;
	} A > B A B {
		A1 = A - 1 ;
		if (A1 > B) {
			sum = A + A1;
		}
		else {
			sum = A + B;
		}
	} A1 = A - 1 A1 A - 1 A 1 if (A1 > B) {
			sum = A + A1;
		}
		else {
			sum = A + B;
		} A1 > B A1 B {
			sum = A + A1;
		} sum = A + A1 sum A + A1 A A1 {
			sum = A + B;
		} sum = A + B sum A + B A B if(A < B) {
		B1 = B - 1;
		if(B1 >A) {
			sum = B + B1;
		}
		else {
			sum = A + B;
		}
	}
	else {
		sum = A+B;
	} A < B A B {
		B1 = B - 1;
		if(B1 >A) {
			sum = B + B1;
		}
		else {
			sum = A + B;
		}
	} B1 = B - 1 B1 B - 1 B 1 if(B1 >A) {
			sum = B + B1;
		}
		else {
			sum = A + B;
		} B1 >A B1 A {
			sum = B + B1;
		} sum = B + B1 sum B + B1 B B1 {
			sum = A + B;
		} sum = A + B sum A + B A B {
		sum = A+B;
	} sum = A+B sum A+B A B System.out.print(sum) System.out.print System.out System System.out sum String[] args args
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 A1 = 0;
		int B1 = 0;
		int sum = 0;
		sc.close();
	if(A > B) {
		A1 = A - 1 ;
		if (A1 > B) {
			sum = A + A1;
		}
		else {
			sum = A + B;
		}
	}
	
	else if(A < B) {
		B1 = B - 1;
		if(B1 >A) {
			sum = B + B1;
		}
		else {
			sum = A + B;
		}
	}
	else {
		sum = A+B;
	}
		System.out.print(sum);
	}
}