import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int a = scanner.nextInt(), b = scanner.nextInt();
			System.out.println((a > b) ? a + Math.max(a - 1, b) : 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(), b = scanner.nextInt();
			System.out.println((a > b) ? a + Math.max(a - 1, b) : b + Math.max(a, b - 1));
		}
	}
} Main public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int a = scanner.nextInt(), b = scanner.nextInt();
			System.out.println((a > b) ? a + Math.max(a - 1, b) : b + Math.max(a, b - 1));
		}
	} main {
		try (Scanner scanner = new Scanner(System.in)) {
			int a = scanner.nextInt(), b = scanner.nextInt();
			System.out.println((a > b) ? a + Math.max(a - 1, b) : b + Math.max(a, b - 1));
		}
	} try (Scanner scanner = new Scanner(System.in)) {
			int a = scanner.nextInt(), b = scanner.nextInt();
			System.out.println((a > b) ? a + Math.max(a - 1, b) : b + Math.max(a, b - 1));
		} {
			int a = scanner.nextInt(), b = scanner.nextInt();
			System.out.println((a > b) ? a + Math.max(a - 1, b) : 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 b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner System.out.println((a > b) ? a + Math.max(a - 1, b) : b + Math.max(a, b - 1)) System.out.println System.out System System.out (a > b) ? a + Math.max(a - 1, b) : b + Math.max(a, b - 1) (a > b) a b a + Math.max(a - 1, b) a Math.max(a - 1, b) Math.max Math a - 1 a 1 b 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(), b = scanner.nextInt();
			System.out.println((a > b) ? a + Math.max(a - 1, b) : 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(), b = scanner.nextInt();
			System.out.println((a > b) ? a + Math.max(a - 1, b) : 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(), b = scanner.nextInt();
			System.out.println((a > b) ? a + Math.max(a - 1, b) : b + Math.max(a, b - 1));
		}
	}
}
