import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner reader = new Scanner(System.in);
		int A = reader.nextInt();
		int B = reader.nextInt();
		int ans = Math.max(A+A-1, B+B-1);
		ans = Math.max(ans, A+B);


		System.out.print(ans);
		reader.close();

	}

}


 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {

		Scanner reader = new Scanner(System.in);
		int A = reader.nextInt();
		int B = reader.nextInt();
		int ans = Math.max(A+A-1, B+B-1);
		ans = Math.max(ans, A+B);


		System.out.print(ans);
		reader.close();

	}

} Main public static void main(String[] args) {

		Scanner reader = new Scanner(System.in);
		int A = reader.nextInt();
		int B = reader.nextInt();
		int ans = Math.max(A+A-1, B+B-1);
		ans = Math.max(ans, A+B);


		System.out.print(ans);
		reader.close();

	} main {

		Scanner reader = new Scanner(System.in);
		int A = reader.nextInt();
		int B = reader.nextInt();
		int ans = Math.max(A+A-1, B+B-1);
		ans = Math.max(ans, A+B);


		System.out.print(ans);
		reader.close();

	} Scanner reader = new Scanner(System.in); reader new Scanner(System.in) int A = reader.nextInt(); A reader.nextInt() reader.nextInt reader int B = reader.nextInt(); B reader.nextInt() reader.nextInt reader int ans = Math.max(A+A-1, B+B-1); ans Math.max(A+A-1, B+B-1) Math.max Math A+A-1 A+A A A 1 B+B-1 B+B B B 1 ans = Math.max(ans, A+B) ans Math.max(ans, A+B) Math.max Math ans A+B A B System.out.print(ans) System.out.print System.out System System.out ans reader.close() reader.close reader String[] args args public class Main {
	public static void main(String[] args) {

		Scanner reader = new Scanner(System.in);
		int A = reader.nextInt();
		int B = reader.nextInt();
		int ans = Math.max(A+A-1, B+B-1);
		ans = Math.max(ans, A+B);


		System.out.print(ans);
		reader.close();

	}

} public class Main {
	public static void main(String[] args) {

		Scanner reader = new Scanner(System.in);
		int A = reader.nextInt();
		int B = reader.nextInt();
		int ans = Math.max(A+A-1, B+B-1);
		ans = Math.max(ans, A+B);


		System.out.print(ans);
		reader.close();

	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner reader = new Scanner(System.in);
		int A = reader.nextInt();
		int B = reader.nextInt();
		int ans = Math.max(A+A-1, B+B-1);
		ans = Math.max(ans, A+B);


		System.out.print(ans);
		reader.close();

	}

}



