import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();
		int count = 0;
		if(a != b) {
			count = 2*(Math.max(a, b))-1;
		}else {
			count = a + b;
		}
		System.out.println(count);
	}
} 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();
		int b = sc.nextInt();
		sc.close();
		int count = 0;
		if(a != b) {
			count = 2*(Math.max(a, b))-1;
		}else {
			count = a + b;
		}
		System.out.println(count);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();
		int count = 0;
		if(a != b) {
			count = 2*(Math.max(a, b))-1;
		}else {
			count = a + b;
		}
		System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();
		int count = 0;
		if(a != b) {
			count = 2*(Math.max(a, b))-1;
		}else {
			count = a + b;
		}
		System.out.println(count);
	} 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 sc.close() sc.close sc int count = 0; count 0 if(a != b) {
			count = 2*(Math.max(a, b))-1;
		}else {
			count = a + b;
		} a != b a b {
			count = 2*(Math.max(a, b))-1;
		} count = 2*(Math.max(a, b))-1 count 2*(Math.max(a, b))-1 2*(Math.max(a, b)) 2 (Math.max(a, b)) Math.max Math a b 1 {
			count = a + b;
		} count = a + b count a + b a b System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

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

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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();
		int count = 0;
		if(a != b) {
			count = 2*(Math.max(a, b))-1;
		}else {
			count = a + b;
		}
		System.out.println(count);
	}
}