import java.util.*;
public class Main{
	public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		int c=0;
		if(a>b)
			c=a+(a-1);
		else if(a<b)
			c=b+(b-1);
		else c=a+b;
		System.out.println(c);
	}
} import java.util.*; util.* java public class Main{
	public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		int c=0;
		if(a>b)
			c=a+(a-1);
		else if(a<b)
			c=b+(b-1);
		else c=a+b;
		System.out.println(c);
	}
} Main public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		int c=0;
		if(a>b)
			c=a+(a-1);
		else if(a<b)
			c=b+(b-1);
		else c=a+b;
		System.out.println(c);
	} main {
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		int c=0;
		if(a>b)
			c=a+(a-1);
		else if(a<b)
			c=b+(b-1);
		else c=a+b;
		System.out.println(c);
	} 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 int c=0; c 0 if(a>b)
			c=a+(a-1);
		else if(a<b)
			c=b+(b-1);
		else c=a+b; a>b a b c=a+(a-1) c a+(a-1) a (a-1) a 1 if(a<b)
			c=b+(b-1);
		else c=a+b; a<b a b c=b+(b-1) c b+(b-1) b (b-1) b 1 c=a+b c a+b a b System.out.println(c) System.out.println System.out System System.out c String arg[] arg public class Main{
	public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		int c=0;
		if(a>b)
			c=a+(a-1);
		else if(a<b)
			c=b+(b-1);
		else c=a+b;
		System.out.println(c);
	}
} public class Main{
	public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		int c=0;
		if(a>b)
			c=a+(a-1);
		else if(a<b)
			c=b+(b-1);
		else c=a+b;
		System.out.println(c);
	}
} Main
import java.util.*;
public class Main{
	public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		int c=0;
		if(a>b)
			c=a+(a-1);
		else if(a<b)
			c=b+(b-1);
		else c=a+b;
		System.out.println(c);
	}
}