import 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 y = 0;
    if(a>b){
      x = a;
      y = b;
    }else{
      x = b;
      y = a;
    }
    if(x-y>=2){
      System.out.println(2*x-1);
    }else{
      System.out.println(x+y);
    }
  }
} import java.util.*; util.* java 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 y = 0;
    if(a>b){
      x = a;
      y = b;
    }else{
      x = b;
      y = a;
    }
    if(x-y>=2){
      System.out.println(2*x-1);
    }else{
      System.out.println(x+y);
    }
  }
} 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 y = 0;
    if(a>b){
      x = a;
      y = b;
    }else{
      x = b;
      y = a;
    }
    if(x-y>=2){
      System.out.println(2*x-1);
    }else{
      System.out.println(x+y);
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int x = 0;
    int y = 0;
    if(a>b){
      x = a;
      y = b;
    }else{
      x = b;
      y = a;
    }
    if(x-y>=2){
      System.out.println(2*x-1);
    }else{
      System.out.println(x+y);
    }
  } 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 y = 0; y 0 if(a>b){
      x = a;
      y = b;
    }else{
      x = b;
      y = a;
    } a>b a b {
      x = a;
      y = b;
    } x = a x a y = b y b {
      x = b;
      y = a;
    } x = b x b y = a y a if(x-y>=2){
      System.out.println(2*x-1);
    }else{
      System.out.println(x+y);
    } x-y>=2 x-y x y 2 {
      System.out.println(2*x-1);
    } System.out.println(2*x-1) System.out.println System.out System System.out 2*x-1 2*x 2 x 1 {
      System.out.println(x+y);
    } System.out.println(x+y) System.out.println System.out System System.out x+y x y 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 y = 0;
    if(a>b){
      x = a;
      y = b;
    }else{
      x = b;
      y = a;
    }
    if(x-y>=2){
      System.out.println(2*x-1);
    }else{
      System.out.println(x+y);
    }
  }
} 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 y = 0;
    if(a>b){
      x = a;
      y = b;
    }else{
      x = b;
      y = a;
    }
    if(x-y>=2){
      System.out.println(2*x-1);
    }else{
      System.out.println(x+y);
    }
  }
} Main
import 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 y = 0;
    if(a>b){
      x = a;
      y = b;
    }else{
      x = b;
      y = a;
    }
    if(x-y>=2){
      System.out.println(2*x-1);
    }else{
      System.out.println(x+y);
    }
  }
}
