import java.util.*;
import java.io.*;

public class Main{
public static void main(String[] args){
Scanner s = new Scanner(System.in);
  int a = s.nextInt();
  int b = s.nextInt();
  int result =0;
  
  if(a>b){
  result = a + Math.max(a-1,b);
  }
  else if(b>a){
    result = b + Math.max(a,b-1);
  }
  else{
  result = 2*a;
  }
  
  System.out.print(result);
  
}
} import java.util.*; util.* java import java.io.*; io.* java public class Main{
public static void main(String[] args){
Scanner s = new Scanner(System.in);
  int a = s.nextInt();
  int b = s.nextInt();
  int result =0;
  
  if(a>b){
  result = a + Math.max(a-1,b);
  }
  else if(b>a){
    result = b + Math.max(a,b-1);
  }
  else{
  result = 2*a;
  }
  
  System.out.print(result);
  
}
} Main public static void main(String[] args){
Scanner s = new Scanner(System.in);
  int a = s.nextInt();
  int b = s.nextInt();
  int result =0;
  
  if(a>b){
  result = a + Math.max(a-1,b);
  }
  else if(b>a){
    result = b + Math.max(a,b-1);
  }
  else{
  result = 2*a;
  }
  
  System.out.print(result);
  
} main {
Scanner s = new Scanner(System.in);
  int a = s.nextInt();
  int b = s.nextInt();
  int result =0;
  
  if(a>b){
  result = a + Math.max(a-1,b);
  }
  else if(b>a){
    result = b + Math.max(a,b-1);
  }
  else{
  result = 2*a;
  }
  
  System.out.print(result);
  
} Scanner s = new Scanner(System.in); s new Scanner(System.in) int a = s.nextInt(); a s.nextInt() s.nextInt s int b = s.nextInt(); b s.nextInt() s.nextInt s int result =0; result 0 if(a>b){
  result = a + Math.max(a-1,b);
  }
  else if(b>a){
    result = b + Math.max(a,b-1);
  }
  else{
  result = 2*a;
  } a>b a b {
  result = a + Math.max(a-1,b);
  } result = a + Math.max(a-1,b) result a + Math.max(a-1,b) a Math.max(a-1,b) Math.max Math a-1 a 1 b if(b>a){
    result = b + Math.max(a,b-1);
  }
  else{
  result = 2*a;
  } b>a b a {
    result = b + Math.max(a,b-1);
  } result = b + Math.max(a,b-1) result b + Math.max(a,b-1) b Math.max(a,b-1) Math.max Math a b-1 b 1 {
  result = 2*a;
  } result = 2*a result 2*a 2 a System.out.print(result) System.out.print System.out System System.out result String[] args args public class Main{
public static void main(String[] args){
Scanner s = new Scanner(System.in);
  int a = s.nextInt();
  int b = s.nextInt();
  int result =0;
  
  if(a>b){
  result = a + Math.max(a-1,b);
  }
  else if(b>a){
    result = b + Math.max(a,b-1);
  }
  else{
  result = 2*a;
  }
  
  System.out.print(result);
  
}
} public class Main{
public static void main(String[] args){
Scanner s = new Scanner(System.in);
  int a = s.nextInt();
  int b = s.nextInt();
  int result =0;
  
  if(a>b){
  result = a + Math.max(a-1,b);
  }
  else if(b>a){
    result = b + Math.max(a,b-1);
  }
  else{
  result = 2*a;
  }
  
  System.out.print(result);
  
}
} Main
import java.util.*;
import java.io.*;

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