import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			if (a > b) {
				System.out.println(a + Math.max(a - 1, b));
			} else {
				System.out.println(b + Math.max(a, b - 1));
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			if (a > b) {
				System.out.println(a + Math.max(a - 1, b));
			} else {
				System.out.println(b + Math.max(a, b - 1));
			}
		}
	}
} Main public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			if (a > b) {
				System.out.println(a + Math.max(a - 1, b));
			} else {
				System.out.println(b + Math.max(a, b - 1));
			}
		}
	} main {
		try (Scanner scanner = new Scanner(System.in)) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			if (a > b) {
				System.out.println(a + Math.max(a - 1, b));
			} else {
				System.out.println(b + Math.max(a, b - 1));
			}
		}
	} try (Scanner scanner = new Scanner(System.in)) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			if (a > b) {
				System.out.println(a + Math.max(a - 1, b));
			} else {
				System.out.println(b + Math.max(a, b - 1));
			}
		} {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			if (a > b) {
				System.out.println(a + Math.max(a - 1, b));
			} else {
				System.out.println(b + Math.max(a, b - 1));
			}
		} Scanner scanner = new Scanner(System.in) Scanner scanner = new Scanner(System.in) new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner if (a > b) {
				System.out.println(a + Math.max(a - 1, b));
			} else {
				System.out.println(b + Math.max(a, b - 1));
			} a > b a b {
				System.out.println(a + Math.max(a - 1, b));
			} System.out.println(a + Math.max(a - 1, b)) System.out.println System.out System System.out a + Math.max(a - 1, b) a Math.max(a - 1, b) Math.max Math a - 1 a 1 b {
				System.out.println(b + Math.max(a, b - 1));
			} System.out.println(b + Math.max(a, b - 1)) System.out.println System.out System System.out b + Math.max(a, b - 1) b Math.max(a, b - 1) Math.max Math a b - 1 b 1 String[] args args public class Main {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			if (a > b) {
				System.out.println(a + Math.max(a - 1, b));
			} else {
				System.out.println(b + Math.max(a, b - 1));
			}
		}
	}
} public class Main {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			if (a > b) {
				System.out.println(a + Math.max(a - 1, b));
			} else {
				System.out.println(b + Math.max(a, b - 1));
			}
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int a = scanner.nextInt();
			int b = scanner.nextInt();
			if (a > b) {
				System.out.println(a + Math.max(a - 1, b));
			} else {
				System.out.println(b + Math.max(a, b - 1));
			}
		}
	}
}
