import java.util.*;

public class Main
{
	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		int a,b,sum=0;
		a = stdIn.nextInt();
		b = stdIn.nextInt();
		
		int A = Math.max(a,b);
		int B = Math.min(a,b);
		
		sum = Math.max(2*A-1,A+B);
		
		System.out.println(sum);
	}
} import java.util.*; util.* java public class Main
{
	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		int a,b,sum=0;
		a = stdIn.nextInt();
		b = stdIn.nextInt();
		
		int A = Math.max(a,b);
		int B = Math.min(a,b);
		
		sum = Math.max(2*A-1,A+B);
		
		System.out.println(sum);
	}
} Main public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		int a,b,sum=0;
		a = stdIn.nextInt();
		b = stdIn.nextInt();
		
		int A = Math.max(a,b);
		int B = Math.min(a,b);
		
		sum = Math.max(2*A-1,A+B);
		
		System.out.println(sum);
	} main {
		Scanner stdIn = new Scanner(System.in);
		int a,b,sum=0;
		a = stdIn.nextInt();
		b = stdIn.nextInt();
		
		int A = Math.max(a,b);
		int B = Math.min(a,b);
		
		sum = Math.max(2*A-1,A+B);
		
		System.out.println(sum);
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int a a b b sum=0; sum 0 a = stdIn.nextInt() a stdIn.nextInt() stdIn.nextInt stdIn b = stdIn.nextInt() b stdIn.nextInt() stdIn.nextInt stdIn int A = Math.max(a,b); A Math.max(a,b) Math.max Math a b int B = Math.min(a,b); B Math.min(a,b) Math.min Math a b sum = Math.max(2*A-1,A+B) sum Math.max(2*A-1,A+B) Math.max Math 2*A-1 2*A 2 A 1 A+B A B System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main
{
	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		int a,b,sum=0;
		a = stdIn.nextInt();
		b = stdIn.nextInt();
		
		int A = Math.max(a,b);
		int B = Math.min(a,b);
		
		sum = Math.max(2*A-1,A+B);
		
		System.out.println(sum);
	}
} public class Main
{
	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		int a,b,sum=0;
		a = stdIn.nextInt();
		b = stdIn.nextInt();
		
		int A = Math.max(a,b);
		int B = Math.min(a,b);
		
		sum = Math.max(2*A-1,A+B);
		
		System.out.println(sum);
	}
} Main
import java.util.*;

public class Main
{
	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		int a,b,sum=0;
		a = stdIn.nextInt();
		b = stdIn.nextInt();
		
		int A = Math.max(a,b);
		int B = Math.min(a,b);
		
		sum = Math.max(2*A-1,A+B);
		
		System.out.println(sum);
	}
}