import java.util.*;

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

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