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;

		int sum = Math.max(aa, ab);

		System.out.println(Math.max(sum, bb));

		sc.close();

	}
} 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;

		int sum = Math.max(aa, ab);

		System.out.println(Math.max(sum, bb));

		sc.close();

	}
} 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;

		int sum = Math.max(aa, ab);

		System.out.println(Math.max(sum, bb));

		sc.close();

	} 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;

		int sum = Math.max(aa, ab);

		System.out.println(Math.max(sum, bb));

		sc.close();

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

		int sum = Math.max(aa, ab);

		System.out.println(Math.max(sum, bb));

		sc.close();

	}
} 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;

		int sum = Math.max(aa, ab);

		System.out.println(Math.max(sum, bb));

		sc.close();

	}
} 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;

		int sum = Math.max(aa, ab);

		System.out.println(Math.max(sum, bb));

		sc.close();

	}
}