import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int button_a, button_b, answer;
    button_a = Integer.parseInt(sc.next());
    button_b = Integer.parseInt(sc.next());
    if(button_a > button_b) {
      answer = 2 * button_a - 1;
    } else if(button_b > button_a) {
      answer = 2 * button_b -1;
    } else {
      answer = 2 * button_a;
    }
    System.out.println(answer);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int button_a, button_b, answer;
    button_a = Integer.parseInt(sc.next());
    button_b = Integer.parseInt(sc.next());
    if(button_a > button_b) {
      answer = 2 * button_a - 1;
    } else if(button_b > button_a) {
      answer = 2 * button_b -1;
    } else {
      answer = 2 * button_a;
    }
    System.out.println(answer);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int button_a, button_b, answer;
    button_a = Integer.parseInt(sc.next());
    button_b = Integer.parseInt(sc.next());
    if(button_a > button_b) {
      answer = 2 * button_a - 1;
    } else if(button_b > button_a) {
      answer = 2 * button_b -1;
    } else {
      answer = 2 * button_a;
    }
    System.out.println(answer);
  } main {
    Scanner sc = new Scanner(System.in);
    int button_a, button_b, answer;
    button_a = Integer.parseInt(sc.next());
    button_b = Integer.parseInt(sc.next());
    if(button_a > button_b) {
      answer = 2 * button_a - 1;
    } else if(button_b > button_a) {
      answer = 2 * button_b -1;
    } else {
      answer = 2 * button_a;
    }
    System.out.println(answer);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int button_a button_a button_b button_b answer; answer button_a = Integer.parseInt(sc.next()) button_a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc button_b = Integer.parseInt(sc.next()) button_b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(button_a > button_b) {
      answer = 2 * button_a - 1;
    } else if(button_b > button_a) {
      answer = 2 * button_b -1;
    } else {
      answer = 2 * button_a;
    } button_a > button_b button_a button_b {
      answer = 2 * button_a - 1;
    } answer = 2 * button_a - 1 answer 2 * button_a - 1 2 * button_a 2 button_a 1 if(button_b > button_a) {
      answer = 2 * button_b -1;
    } else {
      answer = 2 * button_a;
    } button_b > button_a button_b button_a {
      answer = 2 * button_b -1;
    } answer = 2 * button_b -1 answer 2 * button_b -1 2 * button_b 2 button_b 1 {
      answer = 2 * button_a;
    } answer = 2 * button_a answer 2 * button_a 2 button_a System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int button_a, button_b, answer;
    button_a = Integer.parseInt(sc.next());
    button_b = Integer.parseInt(sc.next());
    if(button_a > button_b) {
      answer = 2 * button_a - 1;
    } else if(button_b > button_a) {
      answer = 2 * button_b -1;
    } else {
      answer = 2 * button_a;
    }
    System.out.println(answer);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int button_a, button_b, answer;
    button_a = Integer.parseInt(sc.next());
    button_b = Integer.parseInt(sc.next());
    if(button_a > button_b) {
      answer = 2 * button_a - 1;
    } else if(button_b > button_a) {
      answer = 2 * button_b -1;
    } else {
      answer = 2 * button_a;
    }
    System.out.println(answer);
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int button_a, button_b, answer;
    button_a = Integer.parseInt(sc.next());
    button_b = Integer.parseInt(sc.next());
    if(button_a > button_b) {
      answer = 2 * button_a - 1;
    } else if(button_b > button_a) {
      answer = 2 * button_b -1;
    } else {
      answer = 2 * button_a;
    }
    System.out.println(answer);
  }
}
