import java.util.*;

/**
 * Main
 */
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int A = sc.nextInt();
		int B = sc.nextInt();
		if (A == B) {
			System.out.println(A + B);
		} else {
			System.out.println(2 * Math.max(A, B) - 1);
		}

		sc.close();
	}
}; 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();
		if (A == B) {
			System.out.println(A + B);
		} else {
			System.out.println(2 * Math.max(A, B) - 1);
		}

		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int A = sc.nextInt();
		int B = sc.nextInt();
		if (A == B) {
			System.out.println(A + B);
		} else {
			System.out.println(2 * Math.max(A, B) - 1);
		}

		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int A = sc.nextInt();
		int B = sc.nextInt();
		if (A == B) {
			System.out.println(A + B);
		} else {
			System.out.println(2 * Math.max(A, B) - 1);
		}

		sc.close();
	} 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 if (A == B) {
			System.out.println(A + B);
		} else {
			System.out.println(2 * Math.max(A, B) - 1);
		} A == B A B {
			System.out.println(A + B);
		} System.out.println(A + B) System.out.println System.out System System.out A + B A B {
			System.out.println(2 * Math.max(A, B) - 1);
		} System.out.println(2 * Math.max(A, B) - 1) System.out.println System.out System System.out 2 * Math.max(A, B) - 1 2 * Math.max(A, B) 2 Math.max(A, B) Math.max Math A B 1 sc.close() sc.close sc 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();
		if (A == B) {
			System.out.println(A + B);
		} else {
			System.out.println(2 * Math.max(A, B) - 1);
		}

		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int A = sc.nextInt();
		int B = sc.nextInt();
		if (A == B) {
			System.out.println(A + B);
		} else {
			System.out.println(2 * Math.max(A, B) - 1);
		}

		sc.close();
	}
} Main
import java.util.*;

/**
 * Main
 */
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int A = sc.nextInt();
		int B = sc.nextInt();
		if (A == B) {
			System.out.println(A + B);
		} else {
			System.out.println(2 * Math.max(A, B) - 1);
		}

		sc.close();
	}
};