import java.util.Scanner;
public class Main{

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		int c = 0;
		if(a>b) {
			c = a;
		}else if(a<b) {
			c = b;
		}else {
			System.out.println(a+a);
			System.exit(0);
		}
		
		System.out.println(c+(c-1));
		
		
	}

} import java.util.Scanner; Scanner java.util public class Main{

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		int c = 0;
		if(a>b) {
			c = a;
		}else if(a<b) {
			c = b;
		}else {
			System.out.println(a+a);
			System.exit(0);
		}
		
		System.out.println(c+(c-1));
		
		
	}

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

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		int c = 0;
		if(a>b) {
			c = a;
		}else if(a<b) {
			c = b;
		}else {
			System.out.println(a+a);
			System.exit(0);
		}
		
		System.out.println(c+(c-1));
		
		
	}

} public class Main{

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		int c = 0;
		if(a>b) {
			c = a;
		}else if(a<b) {
			c = b;
		}else {
			System.out.println(a+a);
			System.exit(0);
		}
		
		System.out.println(c+(c-1));
		
		
	}

} Main
import java.util.Scanner;
public class Main{

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		int c = 0;
		if(a>b) {
			c = a;
		}else if(a<b) {
			c = b;
		}else {
			System.out.println(a+a);
			System.exit(0);
		}
		
		System.out.println(c+(c-1));
		
		
	}

}
