import java.awt.Polygon;
import java.awt.geom.Area;
import java.awt.geom.PathIterator;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	
	public static void main(String[] args) throws Exception
	{
		new Main().run();
	}
	
	public void run() throws Exception
	{
		Scanner file = new Scanner(System.in);
		int a = file.nextInt();
		int b = file.nextInt();
		int ans = a+a-1;
		ans = Math.max(ans, b+b-1);
		ans = Math.max(ans, a + b);
		System.out.println(ans);
	}
} import java.awt.Polygon; Polygon java.awt import java.awt.geom.Area; Area java.awt.geom import java.awt.geom.PathIterator; PathIterator java.awt.geom import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	
	public static void main(String[] args) throws Exception
	{
		new Main().run();
	}
	
	public void run() throws Exception
	{
		Scanner file = new Scanner(System.in);
		int a = file.nextInt();
		int b = file.nextInt();
		int ans = a+a-1;
		ans = Math.max(ans, b+b-1);
		ans = Math.max(ans, a + b);
		System.out.println(ans);
	}
} Main public static void main(String[] args) throws Exception
	{
		new Main().run();
	} main {
		new Main().run();
	} new Main().run() new Main().run new Main() String[] args args public void run() throws Exception
	{
		Scanner file = new Scanner(System.in);
		int a = file.nextInt();
		int b = file.nextInt();
		int ans = a+a-1;
		ans = Math.max(ans, b+b-1);
		ans = Math.max(ans, a + b);
		System.out.println(ans);
	} run {
		Scanner file = new Scanner(System.in);
		int a = file.nextInt();
		int b = file.nextInt();
		int ans = a+a-1;
		ans = Math.max(ans, b+b-1);
		ans = Math.max(ans, a + b);
		System.out.println(ans);
	} Scanner file = new Scanner(System.in); file new Scanner(System.in) int a = file.nextInt(); a file.nextInt() file.nextInt file int b = file.nextInt(); b file.nextInt() file.nextInt file int ans = a+a-1; ans a+a-1 a+a a a 1 ans = Math.max(ans, b+b-1) ans Math.max(ans, b+b-1) Math.max Math ans b+b-1 b+b b b 1 ans = Math.max(ans, a + b) ans Math.max(ans, a + b) Math.max Math ans a + b a b System.out.println(ans) System.out.println System.out System System.out ans public class Main {
	
	public static void main(String[] args) throws Exception
	{
		new Main().run();
	}
	
	public void run() throws Exception
	{
		Scanner file = new Scanner(System.in);
		int a = file.nextInt();
		int b = file.nextInt();
		int ans = a+a-1;
		ans = Math.max(ans, b+b-1);
		ans = Math.max(ans, a + b);
		System.out.println(ans);
	}
} public class Main {
	
	public static void main(String[] args) throws Exception
	{
		new Main().run();
	}
	
	public void run() throws Exception
	{
		Scanner file = new Scanner(System.in);
		int a = file.nextInt();
		int b = file.nextInt();
		int ans = a+a-1;
		ans = Math.max(ans, b+b-1);
		ans = Math.max(ans, a + b);
		System.out.println(ans);
	}
} Main
import java.awt.Polygon;
import java.awt.geom.Area;
import java.awt.geom.PathIterator;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;

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