import java.util.Scanner;

class Main {
    public static void main(final String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int ans = 0;
        for (int i = 0; i < 2; i++) {
            ans += Math.max(a,b);
            if (a == ans ) {
                a -= 1;
            } else {
                b -= 1;
            }
        }
        System.out.println(ans);
    }

} import java.util.Scanner; Scanner java.util class Main {
    public static void main(final String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int ans = 0;
        for (int i = 0; i < 2; i++) {
            ans += Math.max(a,b);
            if (a == ans ) {
                a -= 1;
            } else {
                b -= 1;
            }
        }
        System.out.println(ans);
    }

} Main public static void main(final String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int ans = 0;
        for (int i = 0; i < 2; i++) {
            ans += Math.max(a,b);
            if (a == ans ) {
                a -= 1;
            } else {
                b -= 1;
            }
        }
        System.out.println(ans);
    } main {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int ans = 0;
        for (int i = 0; i < 2; i++) {
            ans += Math.max(a,b);
            if (a == ans ) {
                a -= 1;
            } else {
                b -= 1;
            }
        }
        System.out.println(ans);
    } 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 ans = 0; ans 0 for (int i = 0; i < 2; i++) {
            ans += Math.max(a,b);
            if (a == ans ) {
                a -= 1;
            } else {
                b -= 1;
            }
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
            ans += Math.max(a,b);
            if (a == ans ) {
                a -= 1;
            } else {
                b -= 1;
            }
        } {
            ans += Math.max(a,b);
            if (a == ans ) {
                a -= 1;
            } else {
                b -= 1;
            }
        } ans += Math.max(a,b) ans Math.max(a,b) Math.max Math a b if (a == ans ) {
                a -= 1;
            } else {
                b -= 1;
            } a == ans a ans {
                a -= 1;
            } a -= 1 a 1 {
                b -= 1;
            } b -= 1 b 1 System.out.println(ans) System.out.println System.out System System.out ans final String[] args args
import java.util.Scanner;

class Main {
    public static void main(final String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int ans = 0;
        for (int i = 0; i < 2; i++) {
            ans += Math.max(a,b);
            if (a == ans ) {
                a -= 1;
            } else {
                b -= 1;
            }
        }
        System.out.println(ans);
    }

}
