import 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();

      int max = Math.max(a,b);

      if(a==b){
        System.out.println(a+b);
        System.exit(0);
      }
      System.out.println(max + max-1);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[]args){
      Scanner sc = new Scanner(System.in);

      int a = sc.nextInt();
      int b = sc.nextInt();

      int max = Math.max(a,b);

      if(a==b){
        System.out.println(a+b);
        System.exit(0);
      }
      System.out.println(max + max-1);
  }
} Main public static void main(String[]args){
      Scanner sc = new Scanner(System.in);

      int a = sc.nextInt();
      int b = sc.nextInt();

      int max = Math.max(a,b);

      if(a==b){
        System.out.println(a+b);
        System.exit(0);
      }
      System.out.println(max + max-1);
  } main {
      Scanner sc = new Scanner(System.in);

      int a = sc.nextInt();
      int b = sc.nextInt();

      int max = Math.max(a,b);

      if(a==b){
        System.out.println(a+b);
        System.exit(0);
      }
      System.out.println(max + max-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 max = Math.max(a,b); max Math.max(a,b) Math.max Math a b if(a==b){
        System.out.println(a+b);
        System.exit(0);
      } a==b a b {
        System.out.println(a+b);
        System.exit(0);
      } System.out.println(a+b) System.out.println System.out System System.out a+b a b System.exit(0) System.exit System 0 System.out.println(max + max-1) System.out.println System.out System System.out max + max-1 max + max max max 1 String[]args args public class Main{
  public static void main(String[]args){
      Scanner sc = new Scanner(System.in);

      int a = sc.nextInt();
      int b = sc.nextInt();

      int max = Math.max(a,b);

      if(a==b){
        System.out.println(a+b);
        System.exit(0);
      }
      System.out.println(max + max-1);
  }
} public class Main{
  public static void main(String[]args){
      Scanner sc = new Scanner(System.in);

      int a = sc.nextInt();
      int b = sc.nextInt();

      int max = Math.max(a,b);

      if(a==b){
        System.out.println(a+b);
        System.exit(0);
      }
      System.out.println(max + max-1);
  }
} Main
import 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();

      int max = Math.max(a,b);

      if(a==b){
        System.out.println(a+b);
        System.exit(0);
      }
      System.out.println(max + max-1);
  }
}