import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		ArrayList<Integer> arrayList = new ArrayList<Integer>();
		arrayList.add(calculation(A));
		arrayList.add(calculation(B));
		arrayList.add(A+B);
		System.out.println(Collections.max(arrayList));
	}
	
	private static int calculation(int input) {
		return input + (input-1);
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner 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();
		ArrayList<Integer> arrayList = new ArrayList<Integer>();
		arrayList.add(calculation(A));
		arrayList.add(calculation(B));
		arrayList.add(A+B);
		System.out.println(Collections.max(arrayList));
	}
	
	private static int calculation(int input) {
		return input + (input-1);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		ArrayList<Integer> arrayList = new ArrayList<Integer>();
		arrayList.add(calculation(A));
		arrayList.add(calculation(B));
		arrayList.add(A+B);
		System.out.println(Collections.max(arrayList));
	} main {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		ArrayList<Integer> arrayList = new ArrayList<Integer>();
		arrayList.add(calculation(A));
		arrayList.add(calculation(B));
		arrayList.add(A+B);
		System.out.println(Collections.max(arrayList));
	} 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 ArrayList<Integer> arrayList = new ArrayList<Integer>(); arrayList new ArrayList<Integer>() arrayList.add(calculation(A)) arrayList.add arrayList calculation(A) calculation A arrayList.add(calculation(B)) arrayList.add arrayList calculation(B) calculation B arrayList.add(A+B) arrayList.add arrayList A+B A B System.out.println(Collections.max(arrayList)) System.out.println System.out System System.out Collections.max(arrayList) Collections.max Collections arrayList String[] args args private static int calculation(int input) {
		return input + (input-1);
	} calculation {
		return input + (input-1);
	} return input + (input-1); input + (input-1) input (input-1) input 1 int input input public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		ArrayList<Integer> arrayList = new ArrayList<Integer>();
		arrayList.add(calculation(A));
		arrayList.add(calculation(B));
		arrayList.add(A+B);
		System.out.println(Collections.max(arrayList));
	}
	
	private static int calculation(int input) {
		return input + (input-1);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		ArrayList<Integer> arrayList = new ArrayList<Integer>();
		arrayList.add(calculation(A));
		arrayList.add(calculation(B));
		arrayList.add(A+B);
		System.out.println(Collections.max(arrayList));
	}
	
	private static int calculation(int input) {
		return input + (input-1);
	}
} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		ArrayList<Integer> arrayList = new ArrayList<Integer>();
		arrayList.add(calculation(A));
		arrayList.add(calculation(B));
		arrayList.add(A+B);
		System.out.println(Collections.max(arrayList));
	}
	
	private static int calculation(int input) {
		return input + (input-1);
	}
}
