import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();  // input Integer
    int b = sc.nextInt();  // input Integer
//    String a = sc.next();  // input String
    if (a>b){
      System.out.println(2*a-1);
    } else if (a==b){
      System.out.println(2*a);
    } else {
      System.out.println(2*b-1);
    }
  }
} import java.util.Scanner; Scanner java.util import java.util.List; List java.util import java.util.ArrayList; ArrayList java.util public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();  // input Integer
    int b = sc.nextInt();  // input Integer
//    String a = sc.next();  // input String
    if (a>b){
      System.out.println(2*a-1);
    } else if (a==b){
      System.out.println(2*a);
    } else {
      System.out.println(2*b-1);
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();  // input Integer
    int b = sc.nextInt();  // input Integer
//    String a = sc.next();  // input String
    if (a>b){
      System.out.println(2*a-1);
    } else if (a==b){
      System.out.println(2*a);
    } else {
      System.out.println(2*b-1);
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();  // input Integer
    int b = sc.nextInt();  // input Integer
//    String a = sc.next();  // input String
    if (a>b){
      System.out.println(2*a-1);
    } else if (a==b){
      System.out.println(2*a);
    } else {
      System.out.println(2*b-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 if (a>b){
      System.out.println(2*a-1);
    } else if (a==b){
      System.out.println(2*a);
    } else {
      System.out.println(2*b-1);
    } a>b a b {
      System.out.println(2*a-1);
    } System.out.println(2*a-1) System.out.println System.out System System.out 2*a-1 2*a 2 a 1 if (a==b){
      System.out.println(2*a);
    } else {
      System.out.println(2*b-1);
    } a==b a b {
      System.out.println(2*a);
    } System.out.println(2*a) System.out.println System.out System System.out 2*a 2 a {
      System.out.println(2*b-1);
    } System.out.println(2*b-1) System.out.println System.out System System.out 2*b-1 2*b 2 b 1 String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();  // input Integer
    int b = sc.nextInt();  // input Integer
//    String a = sc.next();  // input String
    if (a>b){
      System.out.println(2*a-1);
    } else if (a==b){
      System.out.println(2*a);
    } else {
      System.out.println(2*b-1);
    }
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();  // input Integer
    int b = sc.nextInt();  // input Integer
//    String a = sc.next();  // input String
    if (a>b){
      System.out.println(2*a-1);
    } else if (a==b){
      System.out.println(2*a);
    } else {
      System.out.println(2*b-1);
    }
  }
} Main
import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();  // input Integer
    int b = sc.nextInt();  // input Integer
//    String a = sc.next();  // input String
    if (a>b){
      System.out.println(2*a-1);
    } else if (a==b){
      System.out.println(2*a);
    } else {
      System.out.println(2*b-1);
    }
  }
}
