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();

		int aa = a + (a - 1);
		int ab = a + b;
		int bb = b + (b - 1);

		System.out.println(Math.max(Math.max(aa, ab), bb));
	}
} 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();

		int aa = a + (a - 1);
		int ab = a + b;
		int bb = b + (b - 1);

		System.out.println(Math.max(Math.max(aa, ab), bb));
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		int aa = a + (a - 1);
		int ab = a + b;
		int bb = b + (b - 1);

		System.out.println(Math.max(Math.max(aa, ab), bb));
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		int aa = a + (a - 1);
		int ab = a + b;
		int bb = b + (b - 1);

		System.out.println(Math.max(Math.max(aa, ab), bb));
	} 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 aa = a + (a - 1); aa a + (a - 1) a (a - 1) a 1 int ab = a + b; ab a + b a b int bb = b + (b - 1); bb b + (b - 1) b (b - 1) b 1 System.out.println(Math.max(Math.max(aa, ab), bb)) System.out.println System.out System System.out Math.max(Math.max(aa, ab), bb) Math.max Math Math.max(aa, ab) Math.max Math aa ab bb 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();

		int aa = a + (a - 1);
		int ab = a + b;
		int bb = b + (b - 1);

		System.out.println(Math.max(Math.max(aa, ab), bb));
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		int aa = a + (a - 1);
		int ab = a + b;
		int bb = b + (b - 1);

		System.out.println(Math.max(Math.max(aa, ab), bb));
	}
} 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();

		int aa = a + (a - 1);
		int ab = a + b;
		int bb = b + (b - 1);

		System.out.println(Math.max(Math.max(aa, ab), bb));
	}
}