import java.util.*;
class Main {
  public static void main(String[] args){
    
      Scanner scanner = new Scanner(System.in);
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      System.out.println(Buttons(x,y));
 

  }
    public static int Buttons(int A, int B) {
      if(A==B) return A+B;
      int result = Math.max(A, B);
      return result+result-1;
       
    }
} import java.util.*; util.* java class Main {
  public static void main(String[] args){
    
      Scanner scanner = new Scanner(System.in);
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      System.out.println(Buttons(x,y));
 

  }
    public static int Buttons(int A, int B) {
      if(A==B) return A+B;
      int result = Math.max(A, B);
      return result+result-1;
       
    }
} Main public static void main(String[] args){
    
      Scanner scanner = new Scanner(System.in);
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      System.out.println(Buttons(x,y));
 

  } main {
    
      Scanner scanner = new Scanner(System.in);
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      System.out.println(Buttons(x,y));
 

  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner int y = scanner.nextInt(); y scanner.nextInt() scanner.nextInt scanner System.out.println(Buttons(x,y)) System.out.println System.out System System.out Buttons(x,y) Buttons x y String[] args args public static int Buttons(int A, int B) {
      if(A==B) return A+B;
      int result = Math.max(A, B);
      return result+result-1;
       
    } Buttons {
      if(A==B) return A+B;
      int result = Math.max(A, B);
      return result+result-1;
       
    } if(A==B) return A+B; A==B A B return A+B; A+B A B int result = Math.max(A, B); result Math.max(A, B) Math.max Math A B return result+result-1; result+result-1 result+result result result 1 int A A int B B
import java.util.*;
class Main {
  public static void main(String[] args){
    
      Scanner scanner = new Scanner(System.in);
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      System.out.println(Buttons(x,y));
 

  }
    public static int Buttons(int A, int B) {
      if(A==B) return A+B;
      int result = Math.max(A, B);
      return result+result-1;
       
    }
}