import java.util.*;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		try(Scanner scan = new Scanner(System.in);){
			int A = Integer.parseInt(scan.next());
			int B = Integer.parseInt(scan.next());
			int max = 0;
			if(A == B) {
				max = 2 * A;
			}else if(A > B) {
				max = 2 * A - 1;
			}else {
				max = 2 * B - 1;
			}
			System.out.println(max);
		}
	}
} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		try(Scanner scan = new Scanner(System.in);){
			int A = Integer.parseInt(scan.next());
			int B = Integer.parseInt(scan.next());
			int max = 0;
			if(A == B) {
				max = 2 * A;
			}else if(A > B) {
				max = 2 * A - 1;
			}else {
				max = 2 * B - 1;
			}
			System.out.println(max);
		}
	}
} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		try(Scanner scan = new Scanner(System.in);){
			int A = Integer.parseInt(scan.next());
			int B = Integer.parseInt(scan.next());
			int max = 0;
			if(A == B) {
				max = 2 * A;
			}else if(A > B) {
				max = 2 * A - 1;
			}else {
				max = 2 * B - 1;
			}
			System.out.println(max);
		}
	} main {
		// TODO Auto-generated method stub
		try(Scanner scan = new Scanner(System.in);){
			int A = Integer.parseInt(scan.next());
			int B = Integer.parseInt(scan.next());
			int max = 0;
			if(A == B) {
				max = 2 * A;
			}else if(A > B) {
				max = 2 * A - 1;
			}else {
				max = 2 * B - 1;
			}
			System.out.println(max);
		}
	} try(Scanner scan = new Scanner(System.in);){
			int A = Integer.parseInt(scan.next());
			int B = Integer.parseInt(scan.next());
			int max = 0;
			if(A == B) {
				max = 2 * A;
			}else if(A > B) {
				max = 2 * A - 1;
			}else {
				max = 2 * B - 1;
			}
			System.out.println(max);
		} {
			int A = Integer.parseInt(scan.next());
			int B = Integer.parseInt(scan.next());
			int max = 0;
			if(A == B) {
				max = 2 * A;
			}else if(A > B) {
				max = 2 * A - 1;
			}else {
				max = 2 * B - 1;
			}
			System.out.println(max);
		} Scanner scan = new Scanner(System.in) Scanner scan = new Scanner(System.in) new Scanner(System.in) int A = Integer.parseInt(scan.next()); A Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int B = Integer.parseInt(scan.next()); B Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int max = 0; max 0 if(A == B) {
				max = 2 * A;
			}else if(A > B) {
				max = 2 * A - 1;
			}else {
				max = 2 * B - 1;
			} A == B A B {
				max = 2 * A;
			} max = 2 * A max 2 * A 2 A if(A > B) {
				max = 2 * A - 1;
			}else {
				max = 2 * B - 1;
			} A > B A B {
				max = 2 * A - 1;
			} max = 2 * A - 1 max 2 * A - 1 2 * A 2 A 1 {
				max = 2 * B - 1;
			} max = 2 * B - 1 max 2 * B - 1 2 * B 2 B 1 System.out.println(max) System.out.println System.out System System.out max String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		try(Scanner scan = new Scanner(System.in);){
			int A = Integer.parseInt(scan.next());
			int B = Integer.parseInt(scan.next());
			int max = 0;
			if(A == B) {
				max = 2 * A;
			}else if(A > B) {
				max = 2 * A - 1;
			}else {
				max = 2 * B - 1;
			}
			System.out.println(max);
		}
	}
} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		try(Scanner scan = new Scanner(System.in);){
			int A = Integer.parseInt(scan.next());
			int B = Integer.parseInt(scan.next());
			int max = 0;
			if(A == B) {
				max = 2 * A;
			}else if(A > B) {
				max = 2 * A - 1;
			}else {
				max = 2 * B - 1;
			}
			System.out.println(max);
		}
	}
} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		try(Scanner scan = new Scanner(System.in);){
			int A = Integer.parseInt(scan.next());
			int B = Integer.parseInt(scan.next());
			int max = 0;
			if(A == B) {
				max = 2 * A;
			}else if(A > B) {
				max = 2 * A - 1;
			}else {
				max = 2 * B - 1;
			}
			System.out.println(max);
		}
	}
}
