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 coin;
		
		coin = Math.max(a, b);
		coin += Math.max(coin-1, Math.min(a, b));	
		System.out.print(coin);
	}	
} 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 coin;
		
		coin = Math.max(a, b);
		coin += Math.max(coin-1, Math.min(a, b));	
		System.out.print(coin);
	}	
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int coin;
		
		coin = Math.max(a, b);
		coin += Math.max(coin-1, Math.min(a, b));	
		System.out.print(coin);
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int coin;
		
		coin = Math.max(a, b);
		coin += Math.max(coin-1, Math.min(a, b));	
		System.out.print(coin);
	} 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 coin; coin coin = Math.max(a, b) coin Math.max(a, b) Math.max Math a b coin += Math.max(coin-1, Math.min(a, b)) coin Math.max(coin-1, Math.min(a, b)) Math.max Math coin-1 coin 1 Math.min(a, b) Math.min Math a b System.out.print(coin) System.out.print System.out System System.out coin 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 coin;
		
		coin = Math.max(a, b);
		coin += Math.max(coin-1, Math.min(a, b));	
		System.out.print(coin);
	}	
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int coin;
		
		coin = Math.max(a, b);
		coin += Math.max(coin-1, Math.min(a, b));	
		System.out.print(coin);
	}	
} 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 coin;
		
		coin = Math.max(a, b);
		coin += Math.max(coin-1, Math.min(a, b));	
		System.out.print(coin);
	}	
}