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