import java.util.Scanner;

public class Main {
public static void main(String[]args) {
	Scanner tc = new Scanner (System.in);
	int a,b;
	a=tc.nextInt();
	b=tc.nextInt();
	if(a>b) {
		System.out.println(a*2-1);
	}
	if(b>a) {
		System.out.println(b*2-1);
	}
	if(a==b) {
		System.out.println(a+b);
	}
}
} import java.util.Scanner; Scanner java.util public class Main {
public static void main(String[]args) {
	Scanner tc = new Scanner (System.in);
	int a,b;
	a=tc.nextInt();
	b=tc.nextInt();
	if(a>b) {
		System.out.println(a*2-1);
	}
	if(b>a) {
		System.out.println(b*2-1);
	}
	if(a==b) {
		System.out.println(a+b);
	}
}
} Main public static void main(String[]args) {
	Scanner tc = new Scanner (System.in);
	int a,b;
	a=tc.nextInt();
	b=tc.nextInt();
	if(a>b) {
		System.out.println(a*2-1);
	}
	if(b>a) {
		System.out.println(b*2-1);
	}
	if(a==b) {
		System.out.println(a+b);
	}
} main {
	Scanner tc = new Scanner (System.in);
	int a,b;
	a=tc.nextInt();
	b=tc.nextInt();
	if(a>b) {
		System.out.println(a*2-1);
	}
	if(b>a) {
		System.out.println(b*2-1);
	}
	if(a==b) {
		System.out.println(a+b);
	}
} Scanner tc = new Scanner (System.in); tc new Scanner (System.in) int a a b; b a=tc.nextInt() a tc.nextInt() tc.nextInt tc b=tc.nextInt() b tc.nextInt() tc.nextInt tc if(a>b) {
		System.out.println(a*2-1);
	} a>b a b {
		System.out.println(a*2-1);
	} System.out.println(a*2-1) System.out.println System.out System System.out a*2-1 a*2 a 2 1 if(b>a) {
		System.out.println(b*2-1);
	} b>a b a {
		System.out.println(b*2-1);
	} System.out.println(b*2-1) System.out.println System.out System System.out b*2-1 b*2 b 2 1 if(a==b) {
		System.out.println(a+b);
	} a==b a b {
		System.out.println(a+b);
	} System.out.println(a+b) System.out.println System.out System System.out a+b a b String[]args args public class Main {
public static void main(String[]args) {
	Scanner tc = new Scanner (System.in);
	int a,b;
	a=tc.nextInt();
	b=tc.nextInt();
	if(a>b) {
		System.out.println(a*2-1);
	}
	if(b>a) {
		System.out.println(b*2-1);
	}
	if(a==b) {
		System.out.println(a+b);
	}
}
} public class Main {
public static void main(String[]args) {
	Scanner tc = new Scanner (System.in);
	int a,b;
	a=tc.nextInt();
	b=tc.nextInt();
	if(a>b) {
		System.out.println(a*2-1);
	}
	if(b>a) {
		System.out.println(b*2-1);
	}
	if(a==b) {
		System.out.println(a+b);
	}
}
} Main
import java.util.Scanner;

public class Main {
public static void main(String[]args) {
	Scanner tc = new Scanner (System.in);
	int a,b;
	a=tc.nextInt();
	b=tc.nextInt();
	if(a>b) {
		System.out.println(a*2-1);
	}
	if(b>a) {
		System.out.println(b*2-1);
	}
	if(a==b) {
		System.out.println(a+b);
	}
}
}
