import java.util.*;

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

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