import java.util.Scanner;

public class Main {
	@SuppressWarnings("resource")
	public static void main(String[] args) {
		Scanner imput =  new Scanner(System.in);
		int  A,B;
		A=imput.nextInt();
		B=imput.nextInt();
		int max=A+B;
		if(2*A-1>max)
			max=2*A-1;
		else if(2*B-1>max)
			max=2*B-1;
		System.out.println(max);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	@SuppressWarnings("resource")
	public static void main(String[] args) {
		Scanner imput =  new Scanner(System.in);
		int  A,B;
		A=imput.nextInt();
		B=imput.nextInt();
		int max=A+B;
		if(2*A-1>max)
			max=2*A-1;
		else if(2*B-1>max)
			max=2*B-1;
		System.out.println(max);
	}
} Main @SuppressWarnings("resource")
	public static void main(String[] args) {
		Scanner imput =  new Scanner(System.in);
		int  A,B;
		A=imput.nextInt();
		B=imput.nextInt();
		int max=A+B;
		if(2*A-1>max)
			max=2*A-1;
		else if(2*B-1>max)
			max=2*B-1;
		System.out.println(max);
	} main {
		Scanner imput =  new Scanner(System.in);
		int  A,B;
		A=imput.nextInt();
		B=imput.nextInt();
		int max=A+B;
		if(2*A-1>max)
			max=2*A-1;
		else if(2*B-1>max)
			max=2*B-1;
		System.out.println(max);
	} Scanner imput =  new Scanner(System.in); imput new Scanner(System.in) int  A A B; B A=imput.nextInt() A imput.nextInt() imput.nextInt imput B=imput.nextInt() B imput.nextInt() imput.nextInt imput int max=A+B; max A+B A B if(2*A-1>max)
			max=2*A-1;
		else if(2*B-1>max)
			max=2*B-1; 2*A-1>max 2*A-1 2*A 2 A 1 max max=2*A-1 max 2*A-1 2*A 2 A 1 if(2*B-1>max)
			max=2*B-1; 2*B-1>max 2*B-1 2*B 2 B 1 max max=2*B-1 max 2*B-1 2*B 2 B 1 System.out.println(max) System.out.println System.out System System.out max String[] args args public class Main {
	@SuppressWarnings("resource")
	public static void main(String[] args) {
		Scanner imput =  new Scanner(System.in);
		int  A,B;
		A=imput.nextInt();
		B=imput.nextInt();
		int max=A+B;
		if(2*A-1>max)
			max=2*A-1;
		else if(2*B-1>max)
			max=2*B-1;
		System.out.println(max);
	}
} public class Main {
	@SuppressWarnings("resource")
	public static void main(String[] args) {
		Scanner imput =  new Scanner(System.in);
		int  A,B;
		A=imput.nextInt();
		B=imput.nextInt();
		int max=A+B;
		if(2*A-1>max)
			max=2*A-1;
		else if(2*B-1>max)
			max=2*B-1;
		System.out.println(max);
	}
} Main
import java.util.Scanner;

public class Main {
	@SuppressWarnings("resource")
	public static void main(String[] args) {
		Scanner imput =  new Scanner(System.in);
		int  A,B;
		A=imput.nextInt();
		B=imput.nextInt();
		int max=A+B;
		if(2*A-1>max)
			max=2*A-1;
		else if(2*B-1>max)
			max=2*B-1;
		System.out.println(max);
	}
}