import java.util.Scanner;

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

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int x = 0;
    int i = 0;
    do{
      if(a > b)
        x += a--;
      else
        x += b--;
      i++;
    }while(i != 2);
      
    System.out.println(x);
  }
}