
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String[] nyu=sc.nextLine().split(" ");
   //  String nyu=sc.nextLine();

int A=Integer.parseInt(nyu[0]);
int B=Integer.parseInt(nyu[1]);

if(A>B){
System.out.println(A+A-1);

}else if(A<B){
System.out.println(B+B-1);

}else{
System.out.println(B+A);

}




	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String[] nyu=sc.nextLine().split(" ");
   //  String nyu=sc.nextLine();

int A=Integer.parseInt(nyu[0]);
int B=Integer.parseInt(nyu[1]);

if(A>B){
System.out.println(A+A-1);

}else if(A<B){
System.out.println(B+B-1);

}else{
System.out.println(B+A);

}




	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String[] nyu=sc.nextLine().split(" ");
   //  String nyu=sc.nextLine();

int A=Integer.parseInt(nyu[0]);
int B=Integer.parseInt(nyu[1]);

if(A>B){
System.out.println(A+A-1);

}else if(A<B){
System.out.println(B+B-1);

}else{
System.out.println(B+A);

}




	} main {
		Scanner sc = new Scanner(System.in);
      String[] nyu=sc.nextLine().split(" ");
   //  String nyu=sc.nextLine();

int A=Integer.parseInt(nyu[0]);
int B=Integer.parseInt(nyu[1]);

if(A>B){
System.out.println(A+A-1);

}else if(A<B){
System.out.println(B+B-1);

}else{
System.out.println(B+A);

}




	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] nyu=sc.nextLine().split(" "); nyu sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int A=Integer.parseInt(nyu[0]); A Integer.parseInt(nyu[0]) Integer.parseInt Integer nyu[0] nyu 0 int B=Integer.parseInt(nyu[1]); B Integer.parseInt(nyu[1]) Integer.parseInt Integer nyu[1] nyu 1 if(A>B){
System.out.println(A+A-1);

}else if(A<B){
System.out.println(B+B-1);

}else{
System.out.println(B+A);

} A>B A 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){
System.out.println(B+B-1);

}else{
System.out.println(B+A);

} 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 {
System.out.println(B+A);

} System.out.println(B+A) System.out.println System.out System System.out B+A B A String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String[] nyu=sc.nextLine().split(" ");
   //  String nyu=sc.nextLine();

int A=Integer.parseInt(nyu[0]);
int B=Integer.parseInt(nyu[1]);

if(A>B){
System.out.println(A+A-1);

}else if(A<B){
System.out.println(B+B-1);

}else{
System.out.println(B+A);

}




	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String[] nyu=sc.nextLine().split(" ");
   //  String nyu=sc.nextLine();

int A=Integer.parseInt(nyu[0]);
int B=Integer.parseInt(nyu[1]);

if(A>B){
System.out.println(A+A-1);

}else if(A<B){
System.out.println(B+B-1);

}else{
System.out.println(B+A);

}




	}
} Main

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      String[] nyu=sc.nextLine().split(" ");
   //  String nyu=sc.nextLine();

int A=Integer.parseInt(nyu[0]);
int B=Integer.parseInt(nyu[1]);

if(A>B){
System.out.println(A+A-1);

}else if(A<B){
System.out.println(B+B-1);

}else{
System.out.println(B+A);

}




	}
}