import java.util.Scanner;
 
public class Main {
	public static void main(String[] args) {
 
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
        int b = scan.nextInt();
      
		int sum1 = 0;
		int a1 = a;
      	int b1 = b;
      
      	sum1=a1;
        a1=a1-1;
      
      	if(a1>=b1)
          sum1=sum1+a1;
        else
          sum1=sum1+b1;
       
      int sum2 = 0;
		int a2 = a;
      	int b2 = b;
      
      	sum2=b2;
        b2=b2-1;
      
      	if(a2>=b2)
          sum2=sum2+a2;
      else
        sum2=sum2+b2;
      
      
      if(sum1>=sum2)
        		System.out.println(sum1);
      else
        		System.out.println(sum2);
        
 
 
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
 
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
        int b = scan.nextInt();
      
		int sum1 = 0;
		int a1 = a;
      	int b1 = b;
      
      	sum1=a1;
        a1=a1-1;
      
      	if(a1>=b1)
          sum1=sum1+a1;
        else
          sum1=sum1+b1;
       
      int sum2 = 0;
		int a2 = a;
      	int b2 = b;
      
      	sum2=b2;
        b2=b2-1;
      
      	if(a2>=b2)
          sum2=sum2+a2;
      else
        sum2=sum2+b2;
      
      
      if(sum1>=sum2)
        		System.out.println(sum1);
      else
        		System.out.println(sum2);
        
 
 
	}
} Main public static void main(String[] args) {
 
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
        int b = scan.nextInt();
      
		int sum1 = 0;
		int a1 = a;
      	int b1 = b;
      
      	sum1=a1;
        a1=a1-1;
      
      	if(a1>=b1)
          sum1=sum1+a1;
        else
          sum1=sum1+b1;
       
      int sum2 = 0;
		int a2 = a;
      	int b2 = b;
      
      	sum2=b2;
        b2=b2-1;
      
      	if(a2>=b2)
          sum2=sum2+a2;
      else
        sum2=sum2+b2;
      
      
      if(sum1>=sum2)
        		System.out.println(sum1);
      else
        		System.out.println(sum2);
        
 
 
	} main {
 
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
        int b = scan.nextInt();
      
		int sum1 = 0;
		int a1 = a;
      	int b1 = b;
      
      	sum1=a1;
        a1=a1-1;
      
      	if(a1>=b1)
          sum1=sum1+a1;
        else
          sum1=sum1+b1;
       
      int sum2 = 0;
		int a2 = a;
      	int b2 = b;
      
      	sum2=b2;
        b2=b2-1;
      
      	if(a2>=b2)
          sum2=sum2+a2;
      else
        sum2=sum2+b2;
      
      
      if(sum1>=sum2)
        		System.out.println(sum1);
      else
        		System.out.println(sum2);
        
 
 
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int sum1 = 0; sum1 0 int a1 = a; a1 a int b1 = b; b1 b sum1=a1 sum1 a1 a1=a1-1 a1 a1-1 a1 1 if(a1>=b1)
          sum1=sum1+a1;
        else
          sum1=sum1+b1; a1>=b1 a1 b1 sum1=sum1+a1 sum1 sum1+a1 sum1 a1 sum1=sum1+b1 sum1 sum1+b1 sum1 b1 int sum2 = 0; sum2 0 int a2 = a; a2 a int b2 = b; b2 b sum2=b2 sum2 b2 b2=b2-1 b2 b2-1 b2 1 if(a2>=b2)
          sum2=sum2+a2;
      else
        sum2=sum2+b2; a2>=b2 a2 b2 sum2=sum2+a2 sum2 sum2+a2 sum2 a2 sum2=sum2+b2 sum2 sum2+b2 sum2 b2 if(sum1>=sum2)
        		System.out.println(sum1);
      else
        		System.out.println(sum2); sum1>=sum2 sum1 sum2 System.out.println(sum1) System.out.println System.out System System.out sum1 System.out.println(sum2) System.out.println System.out System System.out sum2 String[] args args public class Main {
	public static void main(String[] args) {
 
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
        int b = scan.nextInt();
      
		int sum1 = 0;
		int a1 = a;
      	int b1 = b;
      
      	sum1=a1;
        a1=a1-1;
      
      	if(a1>=b1)
          sum1=sum1+a1;
        else
          sum1=sum1+b1;
       
      int sum2 = 0;
		int a2 = a;
      	int b2 = b;
      
      	sum2=b2;
        b2=b2-1;
      
      	if(a2>=b2)
          sum2=sum2+a2;
      else
        sum2=sum2+b2;
      
      
      if(sum1>=sum2)
        		System.out.println(sum1);
      else
        		System.out.println(sum2);
        
 
 
	}
} public class Main {
	public static void main(String[] args) {
 
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
        int b = scan.nextInt();
      
		int sum1 = 0;
		int a1 = a;
      	int b1 = b;
      
      	sum1=a1;
        a1=a1-1;
      
      	if(a1>=b1)
          sum1=sum1+a1;
        else
          sum1=sum1+b1;
       
      int sum2 = 0;
		int a2 = a;
      	int b2 = b;
      
      	sum2=b2;
        b2=b2-1;
      
      	if(a2>=b2)
          sum2=sum2+a2;
      else
        sum2=sum2+b2;
      
      
      if(sum1>=sum2)
        		System.out.println(sum1);
      else
        		System.out.println(sum2);
        
 
 
	}
} Main
import java.util.Scanner;
 
public class Main {
	public static void main(String[] args) {
 
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
        int b = scan.nextInt();
      
		int sum1 = 0;
		int a1 = a;
      	int b1 = b;
      
      	sum1=a1;
        a1=a1-1;
      
      	if(a1>=b1)
          sum1=sum1+a1;
        else
          sum1=sum1+b1;
       
      int sum2 = 0;
		int a2 = a;
      	int b2 = b;
      
      	sum2=b2;
        b2=b2-1;
      
      	if(a2>=b2)
          sum2=sum2+a2;
      else
        sum2=sum2+b2;
      
      
      if(sum1>=sum2)
        		System.out.println(sum1);
      else
        		System.out.println(sum2);
        
 
 
	}
}