import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		in.close();
      	int ans = a > b ? a * 2 - 1
          		: a < b ? b * 2 - 1
                : a + b;
      	System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		in.close();
      	int ans = a > b ? a * 2 - 1
          		: a < b ? b * 2 - 1
                : a + b;
      	System.out.println(ans);
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		in.close();
      	int ans = a > b ? a * 2 - 1
          		: a < b ? b * 2 - 1
                : a + b;
      	System.out.println(ans);
	} main {
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		in.close();
      	int ans = a > b ? a * 2 - 1
          		: a < b ? b * 2 - 1
                : a + b;
      	System.out.println(ans);
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int a = in.nextInt(); a in.nextInt() in.nextInt in int b = in.nextInt(); b in.nextInt() in.nextInt in in.close() in.close in int ans = a > b ? a * 2 - 1
          		: a < b ? b * 2 - 1
                : a + b; ans a > b ? a * 2 - 1
          		: a < b ? b * 2 - 1
                : a + b a > b a b a * 2 - 1 a * 2 a 2 1 a < b ? b * 2 - 1
                : a + b a < b a b b * 2 - 1 b * 2 b 2 1 a + b a b System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		in.close();
      	int ans = a > b ? a * 2 - 1
          		: a < b ? b * 2 - 1
                : a + b;
      	System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		in.close();
      	int ans = a > b ? a * 2 - 1
          		: a < b ? b * 2 - 1
                : a + b;
      	System.out.println(ans);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		in.close();
      	int ans = a > b ? a * 2 - 1
          		: a < b ? b * 2 - 1
                : a + b;
      	System.out.println(ans);
	}
}
