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();
        if (a > b){
            System.out.println(2*a - 1);
        }
      else if(a == b){
      		System.out.println(2*a);
      }
        else{
            System.out.println(2*b - 1);
        }
    }
} 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();
        if (a > b){
            System.out.println(2*a - 1);
        }
      else if(a == b){
      		System.out.println(2*a);
      }
        else{
            System.out.println(2*b - 1);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if (a > b){
            System.out.println(2*a - 1);
        }
      else if(a == b){
      		System.out.println(2*a);
      }
        else{
            System.out.println(2*b - 1);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if (a > b){
            System.out.println(2*a - 1);
        }
      else if(a == b){
      		System.out.println(2*a);
      }
        else{
            System.out.println(2*b - 1);
        }
    } 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 if (a > b){
            System.out.println(2*a - 1);
        }
      else if(a == b){
      		System.out.println(2*a);
      }
        else{
            System.out.println(2*b - 1);
        } a > b a b {
            System.out.println(2*a - 1);
        } System.out.println(2*a - 1) System.out.println System.out System System.out 2*a - 1 2*a 2 a 1 if(a == b){
      		System.out.println(2*a);
      }
        else{
            System.out.println(2*b - 1);
        } a == b a b {
      		System.out.println(2*a);
      } System.out.println(2*a) System.out.println System.out System System.out 2*a 2 a {
            System.out.println(2*b - 1);
        } System.out.println(2*b - 1) System.out.println System.out System System.out 2*b - 1 2*b 2 b 1 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();
        if (a > b){
            System.out.println(2*a - 1);
        }
      else if(a == b){
      		System.out.println(2*a);
      }
        else{
            System.out.println(2*b - 1);
        }
    }
}
