
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		int a=scn.nextInt();
		int b=scn.nextInt();
		if(a>b&&b>a-1) {
			System.out.println(a+b);
		}else if(a>b&&a-1>=b) {
			System.out.println(a+a-1);
		}else if(a>b-1) {
			System.out.println(a+b);
		}else {
			System.out.println(b+b-1);
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		int a=scn.nextInt();
		int b=scn.nextInt();
		if(a>b&&b>a-1) {
			System.out.println(a+b);
		}else if(a>b&&a-1>=b) {
			System.out.println(a+a-1);
		}else if(a>b-1) {
			System.out.println(a+b);
		}else {
			System.out.println(b+b-1);
		}
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		int a=scn.nextInt();
		int b=scn.nextInt();
		if(a>b&&b>a-1) {
			System.out.println(a+b);
		}else if(a>b&&a-1>=b) {
			System.out.println(a+a-1);
		}else if(a>b-1) {
			System.out.println(a+b);
		}else {
			System.out.println(b+b-1);
		}
	} main {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		int a=scn.nextInt();
		int b=scn.nextInt();
		if(a>b&&b>a-1) {
			System.out.println(a+b);
		}else if(a>b&&a-1>=b) {
			System.out.println(a+a-1);
		}else if(a>b-1) {
			System.out.println(a+b);
		}else {
			System.out.println(b+b-1);
		}
	} Scanner scn=new Scanner(System.in); scn new Scanner(System.in) int a=scn.nextInt(); a scn.nextInt() scn.nextInt scn int b=scn.nextInt(); b scn.nextInt() scn.nextInt scn if(a>b&&b>a-1) {
			System.out.println(a+b);
		}else if(a>b&&a-1>=b) {
			System.out.println(a+a-1);
		}else if(a>b-1) {
			System.out.println(a+b);
		}else {
			System.out.println(b+b-1);
		} a>b&&b>a-1 a>b a b b>a-1 b a-1 a 1 {
			System.out.println(a+b);
		} System.out.println(a+b) System.out.println System.out System System.out a+b a b if(a>b&&a-1>=b) {
			System.out.println(a+a-1);
		}else if(a>b-1) {
			System.out.println(a+b);
		}else {
			System.out.println(b+b-1);
		} a>b&&a-1>=b a>b a b a-1>=b a-1 a 1 b {
			System.out.println(a+a-1);
		} System.out.println(a+a-1) System.out.println System.out System System.out a+a-1 a+a a a 1 if(a>b-1) {
			System.out.println(a+b);
		}else {
			System.out.println(b+b-1);
		} a>b-1 a b-1 b 1 {
			System.out.println(a+b);
		} System.out.println(a+b) System.out.println System.out System System.out a+b a b {
			System.out.println(b+b-1);
		} System.out.println(b+b-1) System.out.println System.out System System.out b+b-1 b+b b b 1 String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		int a=scn.nextInt();
		int b=scn.nextInt();
		if(a>b&&b>a-1) {
			System.out.println(a+b);
		}else if(a>b&&a-1>=b) {
			System.out.println(a+a-1);
		}else if(a>b-1) {
			System.out.println(a+b);
		}else {
			System.out.println(b+b-1);
		}
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		int a=scn.nextInt();
		int b=scn.nextInt();
		if(a>b&&b>a-1) {
			System.out.println(a+b);
		}else if(a>b&&a-1>=b) {
			System.out.println(a+a-1);
		}else if(a>b-1) {
			System.out.println(a+b);
		}else {
			System.out.println(b+b-1);
		}
	}

} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scn=new Scanner(System.in);
		int a=scn.nextInt();
		int b=scn.nextInt();
		if(a>b&&b>a-1) {
			System.out.println(a+b);
		}else if(a>b&&a-1>=b) {
			System.out.println(a+a-1);
		}else if(a>b-1) {
			System.out.println(a+b);
		}else {
			System.out.println(b+b-1);
		}
	}

}
