import java.util.Scanner;

public class Main { 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] line = sc.nextLine().split(" ");
		int firstNumber = Integer.parseInt(line[0]);
		int secoundNumber = Integer.parseInt(line[1]);
		
		int result =0;
		
		int smallerNumber = Math.max(firstNumber, secoundNumber);
		result += smallerNumber;
		if(smallerNumber == firstNumber) {
			firstNumber += -1;
		}else {
			secoundNumber += -1;
		}
		
		int secoundSmaller = Math.max(firstNumber, secoundNumber);
		result += secoundSmaller;
		
		
		System.out.println(result);

		
		
		
	}
}
	
	 import java.util.Scanner; Scanner java.util public class Main { 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] line = sc.nextLine().split(" ");
		int firstNumber = Integer.parseInt(line[0]);
		int secoundNumber = Integer.parseInt(line[1]);
		
		int result =0;
		
		int smallerNumber = Math.max(firstNumber, secoundNumber);
		result += smallerNumber;
		if(smallerNumber == firstNumber) {
			firstNumber += -1;
		}else {
			secoundNumber += -1;
		}
		
		int secoundSmaller = Math.max(firstNumber, secoundNumber);
		result += secoundSmaller;
		
		
		System.out.println(result);

		
		
		
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] line = sc.nextLine().split(" ");
		int firstNumber = Integer.parseInt(line[0]);
		int secoundNumber = Integer.parseInt(line[1]);
		
		int result =0;
		
		int smallerNumber = Math.max(firstNumber, secoundNumber);
		result += smallerNumber;
		if(smallerNumber == firstNumber) {
			firstNumber += -1;
		}else {
			secoundNumber += -1;
		}
		
		int secoundSmaller = Math.max(firstNumber, secoundNumber);
		result += secoundSmaller;
		
		
		System.out.println(result);

		
		
		
	} main {
		Scanner sc = new Scanner(System.in);
		String[] line = sc.nextLine().split(" ");
		int firstNumber = Integer.parseInt(line[0]);
		int secoundNumber = Integer.parseInt(line[1]);
		
		int result =0;
		
		int smallerNumber = Math.max(firstNumber, secoundNumber);
		result += smallerNumber;
		if(smallerNumber == firstNumber) {
			firstNumber += -1;
		}else {
			secoundNumber += -1;
		}
		
		int secoundSmaller = Math.max(firstNumber, secoundNumber);
		result += secoundSmaller;
		
		
		System.out.println(result);

		
		
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] line = sc.nextLine().split(" "); line sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int firstNumber = Integer.parseInt(line[0]); firstNumber Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 int secoundNumber = Integer.parseInt(line[1]); secoundNumber Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 int result =0; result 0 int smallerNumber = Math.max(firstNumber, secoundNumber); smallerNumber Math.max(firstNumber, secoundNumber) Math.max Math firstNumber secoundNumber result += smallerNumber result smallerNumber if(smallerNumber == firstNumber) {
			firstNumber += -1;
		}else {
			secoundNumber += -1;
		} smallerNumber == firstNumber smallerNumber firstNumber {
			firstNumber += -1;
		} firstNumber += -1 firstNumber -1 1 {
			secoundNumber += -1;
		} secoundNumber += -1 secoundNumber -1 1 int secoundSmaller = Math.max(firstNumber, secoundNumber); secoundSmaller Math.max(firstNumber, secoundNumber) Math.max Math firstNumber secoundNumber result += secoundSmaller result secoundSmaller System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main { 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] line = sc.nextLine().split(" ");
		int firstNumber = Integer.parseInt(line[0]);
		int secoundNumber = Integer.parseInt(line[1]);
		
		int result =0;
		
		int smallerNumber = Math.max(firstNumber, secoundNumber);
		result += smallerNumber;
		if(smallerNumber == firstNumber) {
			firstNumber += -1;
		}else {
			secoundNumber += -1;
		}
		
		int secoundSmaller = Math.max(firstNumber, secoundNumber);
		result += secoundSmaller;
		
		
		System.out.println(result);

		
		
		
	}
} public class Main { 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] line = sc.nextLine().split(" ");
		int firstNumber = Integer.parseInt(line[0]);
		int secoundNumber = Integer.parseInt(line[1]);
		
		int result =0;
		
		int smallerNumber = Math.max(firstNumber, secoundNumber);
		result += smallerNumber;
		if(smallerNumber == firstNumber) {
			firstNumber += -1;
		}else {
			secoundNumber += -1;
		}
		
		int secoundSmaller = Math.max(firstNumber, secoundNumber);
		result += secoundSmaller;
		
		
		System.out.println(result);

		
		
		
	}
} Main
import java.util.Scanner;

public class Main { 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] line = sc.nextLine().split(" ");
		int firstNumber = Integer.parseInt(line[0]);
		int secoundNumber = Integer.parseInt(line[1]);
		
		int result =0;
		
		int smallerNumber = Math.max(firstNumber, secoundNumber);
		result += smallerNumber;
		if(smallerNumber == firstNumber) {
			firstNumber += -1;
		}else {
			secoundNumber += -1;
		}
		
		int secoundSmaller = Math.max(firstNumber, secoundNumber);
		result += secoundSmaller;
		
		
		System.out.println(result);

		
		
		
	}
}
	
	