import java.util.Scanner;

public class Main{

	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);

		int a = Integer.parseInt(scanner.next());
		int b = Integer.parseInt(scanner.next());
		scanner.close();

		int res = 0;

		if(a < b){
			res += b;
			b--;
		}else{
			res+= a;
			a--;
		}

		if(a < b){
			res += b;
		}else{
			res += a;
		}

		System.out.println(res);
	}
} import java.util.Scanner; Scanner java.util public class Main{

	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);

		int a = Integer.parseInt(scanner.next());
		int b = Integer.parseInt(scanner.next());
		scanner.close();

		int res = 0;

		if(a < b){
			res += b;
			b--;
		}else{
			res+= a;
			a--;
		}

		if(a < b){
			res += b;
		}else{
			res += a;
		}

		System.out.println(res);
	}
} Main public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);

		int a = Integer.parseInt(scanner.next());
		int b = Integer.parseInt(scanner.next());
		scanner.close();

		int res = 0;

		if(a < b){
			res += b;
			b--;
		}else{
			res+= a;
			a--;
		}

		if(a < b){
			res += b;
		}else{
			res += a;
		}

		System.out.println(res);
	} main {
		Scanner scanner = new Scanner(System.in);

		int a = Integer.parseInt(scanner.next());
		int b = Integer.parseInt(scanner.next());
		scanner.close();

		int res = 0;

		if(a < b){
			res += b;
			b--;
		}else{
			res+= a;
			a--;
		}

		if(a < b){
			res += b;
		}else{
			res += a;
		}

		System.out.println(res);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = Integer.parseInt(scanner.next()); a Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner int b = Integer.parseInt(scanner.next()); b Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner scanner.close() scanner.close scanner int res = 0; res 0 if(a < b){
			res += b;
			b--;
		}else{
			res+= a;
			a--;
		} a < b a b {
			res += b;
			b--;
		} res += b res b b-- b {
			res+= a;
			a--;
		} res+= a res a a-- a if(a < b){
			res += b;
		}else{
			res += a;
		} a < b a b {
			res += b;
		} res += b res b {
			res += a;
		} res += a res a System.out.println(res) System.out.println System.out System System.out res String[] args args public class Main{

	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);

		int a = Integer.parseInt(scanner.next());
		int b = Integer.parseInt(scanner.next());
		scanner.close();

		int res = 0;

		if(a < b){
			res += b;
			b--;
		}else{
			res+= a;
			a--;
		}

		if(a < b){
			res += b;
		}else{
			res += a;
		}

		System.out.println(res);
	}
} public class Main{

	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);

		int a = Integer.parseInt(scanner.next());
		int b = Integer.parseInt(scanner.next());
		scanner.close();

		int res = 0;

		if(a < b){
			res += b;
			b--;
		}else{
			res+= a;
			a--;
		}

		if(a < b){
			res += b;
		}else{
			res += a;
		}

		System.out.println(res);
	}
} Main
import java.util.Scanner;

public class Main{

	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);

		int a = Integer.parseInt(scanner.next());
		int b = Integer.parseInt(scanner.next());
		scanner.close();

		int res = 0;

		if(a < b){
			res += b;
			b--;
		}else{
			res+= a;
			a--;
		}

		if(a < b){
			res += b;
		}else{
			res += a;
		}

		System.out.println(res);
	}
}
