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[] S= new int[]{A+(A-1),B+(B-1),A+B};
      
      int max = S[0];
      for (int i = 0; i < S.length; i++) {
        int v = S[i];
        if(v > max){
          max = v;
        }
      }
      System.out.println(max);
    }
} 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[] S= new int[]{A+(A-1),B+(B-1),A+B};
      
      int max = S[0];
      for (int i = 0; i < S.length; i++) {
        int v = S[i];
        if(v > max){
          max = v;
        }
      }
      System.out.println(max);
    }
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      int A = sc.nextInt();
      int B = sc.nextInt();
      int[] S= new int[]{A+(A-1),B+(B-1),A+B};
      
      int max = S[0];
      for (int i = 0; i < S.length; i++) {
        int v = S[i];
        if(v > max){
          max = v;
        }
      }
      System.out.println(max);
    } main {
		Scanner sc = new Scanner(System.in);
      int A = sc.nextInt();
      int B = sc.nextInt();
      int[] S= new int[]{A+(A-1),B+(B-1),A+B};
      
      int max = S[0];
      for (int i = 0; i < S.length; i++) {
        int v = S[i];
        if(v > max){
          max = v;
        }
      }
      System.out.println(max);
    } 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[] S= new int[]{A+(A-1),B+(B-1),A+B}; S new int[]{A+(A-1),B+(B-1),A+B} int max = S[0]; max S[0] S 0 for (int i = 0; i < S.length; i++) {
        int v = S[i];
        if(v > max){
          max = v;
        }
      } int i = 0; int i = 0; i 0 i < S.length i S.length S S.length i++ i++ i {
        int v = S[i];
        if(v > max){
          max = v;
        }
      } {
        int v = S[i];
        if(v > max){
          max = v;
        }
      } int v = S[i]; v S[i] S i if(v > max){
          max = v;
        } v > max v max {
          max = v;
        } max = v max v System.out.println(max) System.out.println System.out System System.out max 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[] S= new int[]{A+(A-1),B+(B-1),A+B};
      
      int max = S[0];
      for (int i = 0; i < S.length; i++) {
        int v = S[i];
        if(v > max){
          max = v;
        }
      }
      System.out.println(max);
    }
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      int A = sc.nextInt();
      int B = sc.nextInt();
      int[] S= new int[]{A+(A-1),B+(B-1),A+B};
      
      int max = S[0];
      for (int i = 0; i < S.length; i++) {
        int v = S[i];
        if(v > max){
          max = v;
        }
      }
      System.out.println(max);
    }
} 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[] S= new int[]{A+(A-1),B+(B-1),A+B};
      
      int max = S[0];
      for (int i = 0; i < S.length; i++) {
        int v = S[i];
        if(v > max){
          max = v;
        }
      }
      System.out.println(max);
    }
}