import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();

		/**
		if(a == b) {
			System.out.println(a + b);
		}else {
			int res = Math.max(a, b) * 2 -1;
			System.out.println(res);
		}
		**/

		int ans = 0;
		ans = Math.max(ans, a + a -1);
		ans = Math.max(ans, a + b);
		ans = Math.max(ans, b + b -1);

		System.out.println(ans);


	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();

		/**
		if(a == b) {
			System.out.println(a + b);
		}else {
			int res = Math.max(a, b) * 2 -1;
			System.out.println(res);
		}
		**/

		int ans = 0;
		ans = Math.max(ans, a + a -1);
		ans = Math.max(ans, a + b);
		ans = Math.max(ans, b + b -1);

		System.out.println(ans);


	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();

		/**
		if(a == b) {
			System.out.println(a + b);
		}else {
			int res = Math.max(a, b) * 2 -1;
			System.out.println(res);
		}
		**/

		int ans = 0;
		ans = Math.max(ans, a + a -1);
		ans = Math.max(ans, a + b);
		ans = Math.max(ans, b + b -1);

		System.out.println(ans);


	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();

		/**
		if(a == b) {
			System.out.println(a + b);
		}else {
			int res = Math.max(a, b) * 2 -1;
			System.out.println(res);
		}
		**/

		int ans = 0;
		ans = Math.max(ans, a + a -1);
		ans = Math.max(ans, a + b);
		ans = Math.max(ans, b + b -1);

		System.out.println(ans);


	} 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 sc.close() sc.close sc int ans = 0; ans 0 ans = Math.max(ans, a + a -1) ans Math.max(ans, a + a -1) Math.max Math ans a + a -1 a + a a a 1 ans = Math.max(ans, a + b) ans Math.max(ans, a + b) Math.max Math ans a + b a b ans = Math.max(ans, b + b -1) ans Math.max(ans, b + b -1) Math.max Math ans b + b -1 b + b b b 1 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();

		/**
		if(a == b) {
			System.out.println(a + b);
		}else {
			int res = Math.max(a, b) * 2 -1;
			System.out.println(res);
		}
		**/

		int ans = 0;
		ans = Math.max(ans, a + a -1);
		ans = Math.max(ans, a + b);
		ans = Math.max(ans, b + b -1);

		System.out.println(ans);


	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();

		/**
		if(a == b) {
			System.out.println(a + b);
		}else {
			int res = Math.max(a, b) * 2 -1;
			System.out.println(res);
		}
		**/

		int ans = 0;
		ans = Math.max(ans, a + a -1);
		ans = Math.max(ans, a + b);
		ans = Math.max(ans, b + b -1);

		System.out.println(ans);


	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();

		/**
		if(a == b) {
			System.out.println(a + b);
		}else {
			int res = Math.max(a, b) * 2 -1;
			System.out.println(res);
		}
		**/

		int ans = 0;
		ans = Math.max(ans, a + a -1);
		ans = Math.max(ans, a + b);
		ans = Math.max(ans, b + b -1);

		System.out.println(ans);


	}

}