import java.util.*;
public class Main {
  
 public static void main(String[] args)
 {
  Scanner scan = new Scanner(System.in);
  int x = scan.nextInt();
  int y = scan.nextInt();
  if(x==y){System.out.println(x+y);}
  else if(x>y){System.out.println(x*2-1);}
  else{System.out.println(y*2-1);}
 }

} import java.util.*; util.* java public class Main {
  
 public static void main(String[] args)
 {
  Scanner scan = new Scanner(System.in);
  int x = scan.nextInt();
  int y = scan.nextInt();
  if(x==y){System.out.println(x+y);}
  else if(x>y){System.out.println(x*2-1);}
  else{System.out.println(y*2-1);}
 }

} Main public static void main(String[] args)
 {
  Scanner scan = new Scanner(System.in);
  int x = scan.nextInt();
  int y = scan.nextInt();
  if(x==y){System.out.println(x+y);}
  else if(x>y){System.out.println(x*2-1);}
  else{System.out.println(y*2-1);}
 } main {
  Scanner scan = new Scanner(System.in);
  int x = scan.nextInt();
  int y = scan.nextInt();
  if(x==y){System.out.println(x+y);}
  else if(x>y){System.out.println(x*2-1);}
  else{System.out.println(y*2-1);}
 } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int x = scan.nextInt(); x scan.nextInt() scan.nextInt scan int y = scan.nextInt(); y scan.nextInt() scan.nextInt scan if(x==y){System.out.println(x+y);}
  else if(x>y){System.out.println(x*2-1);}
  else{System.out.println(y*2-1);} x==y x y {System.out.println(x+y);} System.out.println(x+y) System.out.println System.out System System.out x+y x y if(x>y){System.out.println(x*2-1);}
  else{System.out.println(y*2-1);} x>y x y {System.out.println(x*2-1);} System.out.println(x*2-1) System.out.println System.out System System.out x*2-1 x*2 x 2 1 {System.out.println(y*2-1);} System.out.println(y*2-1) System.out.println System.out System System.out y*2-1 y*2 y 2 1 String[] args args public class Main {
  
 public static void main(String[] args)
 {
  Scanner scan = new Scanner(System.in);
  int x = scan.nextInt();
  int y = scan.nextInt();
  if(x==y){System.out.println(x+y);}
  else if(x>y){System.out.println(x*2-1);}
  else{System.out.println(y*2-1);}
 }

} public class Main {
  
 public static void main(String[] args)
 {
  Scanner scan = new Scanner(System.in);
  int x = scan.nextInt();
  int y = scan.nextInt();
  if(x==y){System.out.println(x+y);}
  else if(x>y){System.out.println(x*2-1);}
  else{System.out.println(y*2-1);}
 }

} Main
import java.util.*;
public class Main {
  
 public static void main(String[] args)
 {
  Scanner scan = new Scanner(System.in);
  int x = scan.nextInt();
  int y = scan.nextInt();
  if(x==y){System.out.println(x+y);}
  else if(x>y){System.out.println(x*2-1);}
  else{System.out.println(y*2-1);}
 }

}
