import java.util.Scanner;

public class Main {

	public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		sc.close();
		int c = 0;
		if(A > B) { c = A; A--; }
		else { c = B; B--; }
		System.out.println(c + Math.max(A, B));
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		sc.close();
		int c = 0;
		if(A > B) { c = A; A--; }
		else { c = B; B--; }
		System.out.println(c + Math.max(A, B));
	}
} Main public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		sc.close();
		int c = 0;
		if(A > B) { c = A; A--; }
		else { c = B; B--; }
		System.out.println(c + Math.max(A, B));
	} main {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		sc.close();
		int c = 0;
		if(A > B) { c = A; A--; }
		else { c = B; B--; }
		System.out.println(c + Math.max(A, B));
	} 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 c = 0; c 0 if(A > B) { c = A; A--; }
		else { c = B; B--; } A > B A B { c = A; A--; } c = A c A A-- A { c = B; B--; } c = B c B B-- B System.out.println(c + Math.max(A, B)) System.out.println System.out System System.out c + Math.max(A, B) c Math.max(A, B) Math.max Math A B final String[] args args public class Main {

	public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		sc.close();
		int c = 0;
		if(A > B) { c = A; A--; }
		else { c = B; B--; }
		System.out.println(c + Math.max(A, B));
	}
} public class Main {

	public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		sc.close();
		int c = 0;
		if(A > B) { c = A; A--; }
		else { c = B; B--; }
		System.out.println(c + Math.max(A, B));
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		sc.close();
		int c = 0;
		if(A > B) { c = A; A--; }
		else { c = B; B--; }
		System.out.println(c + Math.max(A, B));
	}
}