import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int ba = sc.nextInt();
		int bb = sc.nextInt();
		int count = 0;
		if (ba > bb) {
			count += ba;
			ba--;
		} else {
			count += bb;
			bb--;
		}

		if (ba > bb) {
			count += ba;
			ba--;
		} else {
			count += bb;
			bb--;
		}
		System.out.println(count);
	}

} import java.util.Arrays; Arrays java.util import java.util.HashMap; HashMap java.util import java.util.Map; Map java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int ba = sc.nextInt();
		int bb = sc.nextInt();
		int count = 0;
		if (ba > bb) {
			count += ba;
			ba--;
		} else {
			count += bb;
			bb--;
		}

		if (ba > bb) {
			count += ba;
			ba--;
		} else {
			count += bb;
			bb--;
		}
		System.out.println(count);
	}

} Main public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int ba = sc.nextInt();
		int bb = sc.nextInt();
		int count = 0;
		if (ba > bb) {
			count += ba;
			ba--;
		} else {
			count += bb;
			bb--;
		}

		if (ba > bb) {
			count += ba;
			ba--;
		} else {
			count += bb;
			bb--;
		}
		System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);
		int ba = sc.nextInt();
		int bb = sc.nextInt();
		int count = 0;
		if (ba > bb) {
			count += ba;
			ba--;
		} else {
			count += bb;
			bb--;
		}

		if (ba > bb) {
			count += ba;
			ba--;
		} else {
			count += bb;
			bb--;
		}
		System.out.println(count);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int ba = sc.nextInt(); ba sc.nextInt() sc.nextInt sc int bb = sc.nextInt(); bb sc.nextInt() sc.nextInt sc int count = 0; count 0 if (ba > bb) {
			count += ba;
			ba--;
		} else {
			count += bb;
			bb--;
		} ba > bb ba bb {
			count += ba;
			ba--;
		} count += ba count ba ba-- ba {
			count += bb;
			bb--;
		} count += bb count bb bb-- bb if (ba > bb) {
			count += ba;
			ba--;
		} else {
			count += bb;
			bb--;
		} ba > bb ba bb {
			count += ba;
			ba--;
		} count += ba count ba ba-- ba {
			count += bb;
			bb--;
		} count += bb count bb bb-- bb System.out.println(count) System.out.println System.out System System.out count String args[] args public class Main {

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int ba = sc.nextInt();
		int bb = sc.nextInt();
		int count = 0;
		if (ba > bb) {
			count += ba;
			ba--;
		} else {
			count += bb;
			bb--;
		}

		if (ba > bb) {
			count += ba;
			ba--;
		} else {
			count += bb;
			bb--;
		}
		System.out.println(count);
	}

} public class Main {

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int ba = sc.nextInt();
		int bb = sc.nextInt();
		int count = 0;
		if (ba > bb) {
			count += ba;
			ba--;
		} else {
			count += bb;
			bb--;
		}

		if (ba > bb) {
			count += ba;
			ba--;
		} else {
			count += bb;
			bb--;
		}
		System.out.println(count);
	}

} Main
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int ba = sc.nextInt();
		int bb = sc.nextInt();
		int count = 0;
		if (ba > bb) {
			count += ba;
			ba--;
		} else {
			count += bb;
			bb--;
		}

		if (ba > bb) {
			count += ba;
			ba--;
		} else {
			count += bb;
			bb--;
		}
		System.out.println(count);
	}

}
