import java.util.Scanner;

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

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