import java.util.Scanner;
class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int ans;
        if(B<A){
            ans = A + A - 1;
        }
        else if(A < B){
            ans = B + B - 1;
        }
        else{
            ans = 2*A;
        }
        System.out.println(ans);
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int ans;
        if(B<A){
            ans = A + A - 1;
        }
        else if(A < B){
            ans = B + B - 1;
        }
        else{
            ans = 2*A;
        }
        System.out.println(ans);
    }
} Main public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int ans;
        if(B<A){
            ans = A + A - 1;
        }
        else if(A < B){
            ans = B + B - 1;
        }
        else{
            ans = 2*A;
        }
        System.out.println(ans);
    } main {
        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int ans;
        if(B<A){
            ans = A + A - 1;
        }
        else if(A < B){
            ans = B + B - 1;
        }
        else{
            ans = 2*A;
        }
        System.out.println(ans);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int A = scanner.nextInt(); A scanner.nextInt() scanner.nextInt scanner int B = scanner.nextInt(); B scanner.nextInt() scanner.nextInt scanner int ans; ans if(B<A){
            ans = A + A - 1;
        }
        else if(A < B){
            ans = B + B - 1;
        }
        else{
            ans = 2*A;
        } B<A B A {
            ans = A + A - 1;
        } ans = A + A - 1 ans A + A - 1 A + A A A 1 if(A < B){
            ans = B + B - 1;
        }
        else{
            ans = 2*A;
        } A < B A B {
            ans = B + B - 1;
        } ans = B + B - 1 ans B + B - 1 B + B B B 1 {
            ans = 2*A;
        } ans = 2*A ans 2*A 2 A System.out.println(ans) System.out.println System.out System System.out ans String args[] args
import java.util.Scanner;
class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        int B = scanner.nextInt();
        int ans;
        if(B<A){
            ans = A + A - 1;
        }
        else if(A < B){
            ans = B + B - 1;
        }
        else{
            ans = 2*A;
        }
        System.out.println(ans);
    }
}