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