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