import java.util.Scanner;

public class Main {
    public static void main(String args[]){
        Scanner stdIn = new Scanner(System.in);
        int a = stdIn.nextInt();
        int b = stdIn.nextInt();
        //int n = stdIn.nextInt();
        //int p = stdIn.nextInt();
        
        System.out.println(Math.max(a + a - 1, Math.max(b + b - 1, a + b)));
        
        //System.out.println();
        //System.out.print();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]){
        Scanner stdIn = new Scanner(System.in);
        int a = stdIn.nextInt();
        int b = stdIn.nextInt();
        //int n = stdIn.nextInt();
        //int p = stdIn.nextInt();
        
        System.out.println(Math.max(a + a - 1, Math.max(b + b - 1, a + b)));
        
        //System.out.println();
        //System.out.print();
    }
} Main public static void main(String args[]){
        Scanner stdIn = new Scanner(System.in);
        int a = stdIn.nextInt();
        int b = stdIn.nextInt();
        //int n = stdIn.nextInt();
        //int p = stdIn.nextInt();
        
        System.out.println(Math.max(a + a - 1, Math.max(b + b - 1, a + b)));
        
        //System.out.println();
        //System.out.print();
    } main {
        Scanner stdIn = new Scanner(System.in);
        int a = stdIn.nextInt();
        int b = stdIn.nextInt();
        //int n = stdIn.nextInt();
        //int p = stdIn.nextInt();
        
        System.out.println(Math.max(a + a - 1, Math.max(b + b - 1, a + b)));
        
        //System.out.println();
        //System.out.print();
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int a = stdIn.nextInt(); a stdIn.nextInt() stdIn.nextInt stdIn int b = stdIn.nextInt(); b stdIn.nextInt() stdIn.nextInt stdIn System.out.println(Math.max(a + a - 1, Math.max(b + b - 1, a + b))) System.out.println System.out System System.out Math.max(a + a - 1, Math.max(b + b - 1, a + b)) Math.max Math a + a - 1 a + a a a 1 Math.max(b + b - 1, a + b) Math.max Math b + b - 1 b + b b b 1 a + b a b String args[] args public class Main {
    public static void main(String args[]){
        Scanner stdIn = new Scanner(System.in);
        int a = stdIn.nextInt();
        int b = stdIn.nextInt();
        //int n = stdIn.nextInt();
        //int p = stdIn.nextInt();
        
        System.out.println(Math.max(a + a - 1, Math.max(b + b - 1, a + b)));
        
        //System.out.println();
        //System.out.print();
    }
} public class Main {
    public static void main(String args[]){
        Scanner stdIn = new Scanner(System.in);
        int a = stdIn.nextInt();
        int b = stdIn.nextInt();
        //int n = stdIn.nextInt();
        //int p = stdIn.nextInt();
        
        System.out.println(Math.max(a + a - 1, Math.max(b + b - 1, a + b)));
        
        //System.out.println();
        //System.out.print();
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String args[]){
        Scanner stdIn = new Scanner(System.in);
        int a = stdIn.nextInt();
        int b = stdIn.nextInt();
        //int n = stdIn.nextInt();
        //int p = stdIn.nextInt();
        
        System.out.println(Math.max(a + a - 1, Math.max(b + b - 1, a + b)));
        
        //System.out.println();
        //System.out.print();
    }
}
