import java.util.*;
import java.lang.*;

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

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