import java.util.Scanner;
public class Main{
  	public static void main (String [] args){
      	Scanner scanner = new Scanner (System.in);
      	int A = scanner.nextInt();
      	int B = scanner.nextInt();
      	int sum = Math.max(A,B);
      	if (A > B) A--;
        else B--;
      	sum += Math.max(A,B);
      	System.out.println(sum);
    }
} import java.util.Scanner; Scanner java.util public class Main{
  	public static void main (String [] args){
      	Scanner scanner = new Scanner (System.in);
      	int A = scanner.nextInt();
      	int B = scanner.nextInt();
      	int sum = Math.max(A,B);
      	if (A > B) A--;
        else B--;
      	sum += Math.max(A,B);
      	System.out.println(sum);
    }
} Main public static void main (String [] args){
      	Scanner scanner = new Scanner (System.in);
      	int A = scanner.nextInt();
      	int B = scanner.nextInt();
      	int sum = Math.max(A,B);
      	if (A > B) A--;
        else B--;
      	sum += Math.max(A,B);
      	System.out.println(sum);
    } main {
      	Scanner scanner = new Scanner (System.in);
      	int A = scanner.nextInt();
      	int B = scanner.nextInt();
      	int sum = Math.max(A,B);
      	if (A > B) A--;
        else B--;
      	sum += Math.max(A,B);
      	System.out.println(sum);
    } Scanner scanner = new Scanner (System.in); scanner new Scanner (System.in) int A = scanner.nextInt(); A scanner.nextInt() scanner.nextInt scanner int B = scanner.nextInt(); B scanner.nextInt() scanner.nextInt scanner int sum = Math.max(A,B); sum Math.max(A,B) Math.max Math A B if (A > B) A--;
        else B--; A > B A B A-- A B-- B sum += Math.max(A,B) sum Math.max(A,B) Math.max Math A B 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){
      	Scanner scanner = new Scanner (System.in);
      	int A = scanner.nextInt();
      	int B = scanner.nextInt();
      	int sum = Math.max(A,B);
      	if (A > B) A--;
        else B--;
      	sum += Math.max(A,B);
      	System.out.println(sum);
    }
} public class Main{
  	public static void main (String [] args){
      	Scanner scanner = new Scanner (System.in);
      	int A = scanner.nextInt();
      	int B = scanner.nextInt();
      	int sum = Math.max(A,B);
      	if (A > B) A--;
        else B--;
      	sum += Math.max(A,B);
      	System.out.println(sum);
    }
} Main
import java.util.Scanner;
public class Main{
  	public static void main (String [] args){
      	Scanner scanner = new Scanner (System.in);
      	int A = scanner.nextInt();
      	int B = scanner.nextInt();
      	int sum = Math.max(A,B);
      	if (A > B) A--;
        else B--;
      	sum += Math.max(A,B);
      	System.out.println(sum);
    }
}