import java.util.*;
import java.io.*;

class Main {

	void solve () {

		int a = in.nextInt(), b = in.nextInt();
		int[] ar = {a+a-1, b+b-1, a+b};
		Arrays.sort(ar);
		out.println(ar[2]);
		
	}
	
	public static Scanner in = new Scanner(System.in);
	public static PrintWriter out = new PrintWriter(System.out);
	public static void main(String[] args) {
		new Main().solve();
		out.flush();
	}

} import java.util.*; util.* java import java.io.*; io.* java class Main {

	void solve () {

		int a = in.nextInt(), b = in.nextInt();
		int[] ar = {a+a-1, b+b-1, a+b};
		Arrays.sort(ar);
		out.println(ar[2]);
		
	}
	
	public static Scanner in = new Scanner(System.in);
	public static PrintWriter out = new PrintWriter(System.out);
	public static void main(String[] args) {
		new Main().solve();
		out.flush();
	}

} Main public static Scanner in = new Scanner(System.in); in new Scanner(System.in) public static PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) void solve () {

		int a = in.nextInt(), b = in.nextInt();
		int[] ar = {a+a-1, b+b-1, a+b};
		Arrays.sort(ar);
		out.println(ar[2]);
		
	} solve {

		int a = in.nextInt(), b = in.nextInt();
		int[] ar = {a+a-1, b+b-1, a+b};
		Arrays.sort(ar);
		out.println(ar[2]);
		
	} int a = in.nextInt() a in.nextInt() in.nextInt in b = in.nextInt(); b in.nextInt() in.nextInt in int[] ar = {a+a-1, b+b-1, a+b}; ar {a+a-1, b+b-1, a+b} a+a-1 a+a a a 1 b+b-1 b+b b b 1 a+b a b Arrays.sort(ar) Arrays.sort Arrays ar out.println(ar[2]) out.println out ar[2] ar 2 public static void main(String[] args) {
		new Main().solve();
		out.flush();
	} main {
		new Main().solve();
		out.flush();
	} new Main().solve() new Main().solve new Main() out.flush() out.flush out String[] args args
import java.util.*;
import java.io.*;

class Main {

	void solve () {

		int a = in.nextInt(), b = in.nextInt();
		int[] ar = {a+a-1, b+b-1, a+b};
		Arrays.sort(ar);
		out.println(ar[2]);
		
	}
	
	public static Scanner in = new Scanner(System.in);
	public static PrintWriter out = new PrintWriter(System.out);
	public static void main(String[] args) {
		new Main().solve();
		out.flush();
	}

}