import java.util.*;
public class Main {

	static int a,b,total;

	public static void main(String[] args){
      	Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		total=0;

		push();
		push();

		System.out.println(total);
	}

	public static void push() {
		if(a>=b) {
			total+=a;
			a--;
		}else {
			total+=b;
			b--;
		}
	}
} import java.util.*; util.* java public class Main {

	static int a,b,total;

	public static void main(String[] args){
      	Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		total=0;

		push();
		push();

		System.out.println(total);
	}

	public static void push() {
		if(a>=b) {
			total+=a;
			a--;
		}else {
			total+=b;
			b--;
		}
	}
} Main static int a a b b total; total public static void main(String[] args){
      	Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		total=0;

		push();
		push();

		System.out.println(total);
	} main {
      	Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		total=0;

		push();
		push();

		System.out.println(total);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc total=0 total 0 push() push push() push System.out.println(total) System.out.println System.out System System.out total String[] args args public static void push() {
		if(a>=b) {
			total+=a;
			a--;
		}else {
			total+=b;
			b--;
		}
	} push {
		if(a>=b) {
			total+=a;
			a--;
		}else {
			total+=b;
			b--;
		}
	} if(a>=b) {
			total+=a;
			a--;
		}else {
			total+=b;
			b--;
		} a>=b a b {
			total+=a;
			a--;
		} total+=a total a a-- a {
			total+=b;
			b--;
		} total+=b total b b-- b public class Main {

	static int a,b,total;

	public static void main(String[] args){
      	Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		total=0;

		push();
		push();

		System.out.println(total);
	}

	public static void push() {
		if(a>=b) {
			total+=a;
			a--;
		}else {
			total+=b;
			b--;
		}
	}
} public class Main {

	static int a,b,total;

	public static void main(String[] args){
      	Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		total=0;

		push();
		push();

		System.out.println(total);
	}

	public static void push() {
		if(a>=b) {
			total+=a;
			a--;
		}else {
			total+=b;
			b--;
		}
	}
} Main
import java.util.*;
public class Main {

	static int a,b,total;

	public static void main(String[] args){
      	Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		total=0;

		push();
		push();

		System.out.println(total);
	}

	public static void push() {
		if(a>=b) {
			total+=a;
			a--;
		}else {
			total+=b;
			b--;
		}
	}
}