import java.util.Scanner;

public class Main {
    public static void main(String... args) {
        // 入力
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        int x = 0;

        if (a > b) {
            x += a;
            a--;
            if (a > b) {
                x += a;
            } else {
                x += b;
            }
        } else {
            x += b;
            b--;
            if (b > a) {
                x += b;
            } else {
                x += a;
            }
        }
        System.out.println(x);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String... args) {
        // 入力
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        int x = 0;

        if (a > b) {
            x += a;
            a--;
            if (a > b) {
                x += a;
            } else {
                x += b;
            }
        } else {
            x += b;
            b--;
            if (b > a) {
                x += b;
            } else {
                x += a;
            }
        }
        System.out.println(x);
    }
} Main public static void main(String... args) {
        // 入力
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        int x = 0;

        if (a > b) {
            x += a;
            a--;
            if (a > b) {
                x += a;
            } else {
                x += b;
            }
        } else {
            x += b;
            b--;
            if (b > a) {
                x += b;
            } else {
                x += a;
            }
        }
        System.out.println(x);
    } main {
        // 入力
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        int x = 0;

        if (a > b) {
            x += a;
            a--;
            if (a > b) {
                x += a;
            } else {
                x += b;
            }
        } else {
            x += b;
            b--;
            if (b > a) {
                x += b;
            } else {
                x += a;
            }
        }
        System.out.println(x);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int x = 0; x 0 if (a > b) {
            x += a;
            a--;
            if (a > b) {
                x += a;
            } else {
                x += b;
            }
        } else {
            x += b;
            b--;
            if (b > a) {
                x += b;
            } else {
                x += a;
            }
        } a > b a b {
            x += a;
            a--;
            if (a > b) {
                x += a;
            } else {
                x += b;
            }
        } x += a x a a-- a if (a > b) {
                x += a;
            } else {
                x += b;
            } a > b a b {
                x += a;
            } x += a x a {
                x += b;
            } x += b x b {
            x += b;
            b--;
            if (b > a) {
                x += b;
            } else {
                x += a;
            }
        } x += b x b b-- b if (b > a) {
                x += b;
            } else {
                x += a;
            } b > a b a {
                x += b;
            } x += b x b {
                x += a;
            } x += a x a System.out.println(x) System.out.println System.out System System.out x String... args args public class Main {
    public static void main(String... args) {
        // 入力
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        int x = 0;

        if (a > b) {
            x += a;
            a--;
            if (a > b) {
                x += a;
            } else {
                x += b;
            }
        } else {
            x += b;
            b--;
            if (b > a) {
                x += b;
            } else {
                x += a;
            }
        }
        System.out.println(x);
    }
} public class Main {
    public static void main(String... args) {
        // 入力
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        int x = 0;

        if (a > b) {
            x += a;
            a--;
            if (a > b) {
                x += a;
            } else {
                x += b;
            }
        } else {
            x += b;
            b--;
            if (b > a) {
                x += b;
            } else {
                x += a;
            }
        }
        System.out.println(x);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String... args) {
        // 入力
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        int x = 0;

        if (a > b) {
            x += a;
            a--;
            if (a > b) {
                x += a;
            } else {
                x += b;
            }
        } else {
            x += b;
            b--;
            if (b > a) {
                x += b;
            } else {
                x += a;
            }
        }
        System.out.println(x);
    }
}