import java.util.*;

public class Main{
  static int[] ans;
  static Map<Integer, Integer> map;
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = Math.max(A,B);
    
    System.out.println(A==B ? C*2 : C+C-1);
  }
} import java.util.*; util.* java public class Main{
  static int[] ans;
  static Map<Integer, Integer> map;
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = Math.max(A,B);
    
    System.out.println(A==B ? C*2 : C+C-1);
  }
} Main static int[] ans; ans static Map<Integer, Integer> map; map public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = Math.max(A,B);
    
    System.out.println(A==B ? C*2 : C+C-1);
  } main {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = Math.max(A,B);
    
    System.out.println(A==B ? C*2 : C+C-1);
  } 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 C = Math.max(A,B); C Math.max(A,B) Math.max Math A B System.out.println(A==B ? C*2 : C+C-1) System.out.println System.out System System.out A==B ? C*2 : C+C-1 A==B A B C*2 C 2 C+C-1 C+C C C 1 String[]args args public class Main{
  static int[] ans;
  static Map<Integer, Integer> map;
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = Math.max(A,B);
    
    System.out.println(A==B ? C*2 : C+C-1);
  }
} public class Main{
  static int[] ans;
  static Map<Integer, Integer> map;
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = Math.max(A,B);
    
    System.out.println(A==B ? C*2 : C+C-1);
  }
} Main
import java.util.*;

public class Main{
  static int[] ans;
  static Map<Integer, Integer> map;
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = Math.max(A,B);
    
    System.out.println(A==B ? C*2 : C+C-1);
  }
}