import java.util.Arrays;
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    Main abc124A = new Main();
    System.out.println(abc124A.solve(A, B));
  }

  public int solve(int A, int B){
    int[] array = new int[]{A, B};
    Arrays.sort(array);
    int temp = array[1];
    array[1] = array[1] - 1;
    Arrays.sort(array);
    temp += array[1];
    return temp;
  }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    Main abc124A = new Main();
    System.out.println(abc124A.solve(A, B));
  }

  public int solve(int A, int B){
    int[] array = new int[]{A, B};
    Arrays.sort(array);
    int temp = array[1];
    array[1] = array[1] - 1;
    Arrays.sort(array);
    temp += array[1];
    return temp;
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    Main abc124A = new Main();
    System.out.println(abc124A.solve(A, B));
  } main {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    Main abc124A = new Main();
    System.out.println(abc124A.solve(A, B));
  } 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 Main abc124A = new Main(); abc124A new Main() System.out.println(abc124A.solve(A, B)) System.out.println System.out System System.out abc124A.solve(A, B) abc124A.solve abc124A A B String[] args args public int solve(int A, int B){
    int[] array = new int[]{A, B};
    Arrays.sort(array);
    int temp = array[1];
    array[1] = array[1] - 1;
    Arrays.sort(array);
    temp += array[1];
    return temp;
  } solve {
    int[] array = new int[]{A, B};
    Arrays.sort(array);
    int temp = array[1];
    array[1] = array[1] - 1;
    Arrays.sort(array);
    temp += array[1];
    return temp;
  } int[] array = new int[]{A, B}; array new int[]{A, B} Arrays.sort(array) Arrays.sort Arrays array int temp = array[1]; temp array[1] array 1 array[1] = array[1] - 1 array[1] array 1 array[1] - 1 array[1] array 1 1 Arrays.sort(array) Arrays.sort Arrays array temp += array[1] temp array[1] array 1 return temp; temp int A A int B B public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    Main abc124A = new Main();
    System.out.println(abc124A.solve(A, B));
  }

  public int solve(int A, int B){
    int[] array = new int[]{A, B};
    Arrays.sort(array);
    int temp = array[1];
    array[1] = array[1] - 1;
    Arrays.sort(array);
    temp += array[1];
    return temp;
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    Main abc124A = new Main();
    System.out.println(abc124A.solve(A, B));
  }

  public int solve(int A, int B){
    int[] array = new int[]{A, B};
    Arrays.sort(array);
    int temp = array[1];
    array[1] = array[1] - 1;
    Arrays.sort(array);
    temp += array[1];
    return temp;
  }
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    Main abc124A = new Main();
    System.out.println(abc124A.solve(A, B));
  }

  public int solve(int A, int B){
    int[] array = new int[]{A, B};
    Arrays.sort(array);
    int temp = array[1];
    array[1] = array[1] - 1;
    Arrays.sort(array);
    temp += array[1];
    return temp;
  }
}
