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 calculateA = calculation(A);
		int calculateB = calculation(B); 
		int calculateAB = A+B;
		
		int maxAorB = Math.max(calculateA, calculateB);

		if(maxAorB < calculateAB) {
			System.out.println(calculateAB);
		}else {
			System.out.println(maxAorB);
		}
	}
	
	private static int calculation(int input) {
		return input + (input-1);
	}
} 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 calculateA = calculation(A);
		int calculateB = calculation(B); 
		int calculateAB = A+B;
		
		int maxAorB = Math.max(calculateA, calculateB);

		if(maxAorB < calculateAB) {
			System.out.println(calculateAB);
		}else {
			System.out.println(maxAorB);
		}
	}
	
	private static int calculation(int input) {
		return input + (input-1);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int calculateA = calculation(A);
		int calculateB = calculation(B); 
		int calculateAB = A+B;
		
		int maxAorB = Math.max(calculateA, calculateB);

		if(maxAorB < calculateAB) {
			System.out.println(calculateAB);
		}else {
			System.out.println(maxAorB);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int calculateA = calculation(A);
		int calculateB = calculation(B); 
		int calculateAB = A+B;
		
		int maxAorB = Math.max(calculateA, calculateB);

		if(maxAorB < calculateAB) {
			System.out.println(calculateAB);
		}else {
			System.out.println(maxAorB);
		}
	} 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 calculateA = calculation(A); calculateA calculation(A) calculation A int calculateB = calculation(B); calculateB calculation(B) calculation B int calculateAB = A+B; calculateAB A+B A B int maxAorB = Math.max(calculateA, calculateB); maxAorB Math.max(calculateA, calculateB) Math.max Math calculateA calculateB if(maxAorB < calculateAB) {
			System.out.println(calculateAB);
		}else {
			System.out.println(maxAorB);
		} maxAorB < calculateAB maxAorB calculateAB {
			System.out.println(calculateAB);
		} System.out.println(calculateAB) System.out.println System.out System System.out calculateAB {
			System.out.println(maxAorB);
		} System.out.println(maxAorB) System.out.println System.out System System.out maxAorB String[] args args private static int calculation(int input) {
		return input + (input-1);
	} calculation {
		return input + (input-1);
	} return input + (input-1); input + (input-1) input (input-1) input 1 int input input public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int calculateA = calculation(A);
		int calculateB = calculation(B); 
		int calculateAB = A+B;
		
		int maxAorB = Math.max(calculateA, calculateB);

		if(maxAorB < calculateAB) {
			System.out.println(calculateAB);
		}else {
			System.out.println(maxAorB);
		}
	}
	
	private static int calculation(int input) {
		return input + (input-1);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int calculateA = calculation(A);
		int calculateB = calculation(B); 
		int calculateAB = A+B;
		
		int maxAorB = Math.max(calculateA, calculateB);

		if(maxAorB < calculateAB) {
			System.out.println(calculateAB);
		}else {
			System.out.println(maxAorB);
		}
	}
	
	private static int calculation(int input) {
		return input + (input-1);
	}
} 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 calculateA = calculation(A);
		int calculateB = calculation(B); 
		int calculateAB = A+B;
		
		int maxAorB = Math.max(calculateA, calculateB);

		if(maxAorB < calculateAB) {
			System.out.println(calculateAB);
		}else {
			System.out.println(maxAorB);
		}
	}
	
	private static int calculation(int input) {
		return input + (input-1);
	}
}
