import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int A = scanner.nextInt();
        int B = scanner.nextInt();

        
        int max = Math.max(A, B);
        
        if(A == B){
            System.out.println(max * 2);
        }else {
            System.out.println(max * 2 - 1);
        }

    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int A = scanner.nextInt();
        int B = scanner.nextInt();

        
        int max = Math.max(A, B);
        
        if(A == B){
            System.out.println(max * 2);
        }else {
            System.out.println(max * 2 - 1);
        }

    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int A = scanner.nextInt();
        int B = scanner.nextInt();

        
        int max = Math.max(A, B);
        
        if(A == B){
            System.out.println(max * 2);
        }else {
            System.out.println(max * 2 - 1);
        }

    } main {
        Scanner scanner = new Scanner(System.in);

        int A = scanner.nextInt();
        int B = scanner.nextInt();

        
        int max = Math.max(A, B);
        
        if(A == B){
            System.out.println(max * 2);
        }else {
            System.out.println(max * 2 - 1);
        }

    } 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 max = Math.max(A, B); max Math.max(A, B) Math.max Math A B if(A == B){
            System.out.println(max * 2);
        }else {
            System.out.println(max * 2 - 1);
        } A == B A B {
            System.out.println(max * 2);
        } System.out.println(max * 2) System.out.println System.out System System.out max * 2 max 2 {
            System.out.println(max * 2 - 1);
        } System.out.println(max * 2 - 1) System.out.println System.out System System.out max * 2 - 1 max * 2 max 2 1 String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int A = scanner.nextInt();
        int B = scanner.nextInt();

        
        int max = Math.max(A, B);
        
        if(A == B){
            System.out.println(max * 2);
        }else {
            System.out.println(max * 2 - 1);
        }

    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int A = scanner.nextInt();
        int B = scanner.nextInt();

        
        int max = Math.max(A, B);
        
        if(A == B){
            System.out.println(max * 2);
        }else {
            System.out.println(max * 2 - 1);
        }

    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int A = scanner.nextInt();
        int B = scanner.nextInt();

        
        int max = Math.max(A, B);
        
        if(A == B){
            System.out.println(max * 2);
        }else {
            System.out.println(max * 2 - 1);
        }

    }
}
