

import java.util.Scanner;

public class Main {

    public static void main(final String[] args) {

        try (final Scanner sc = new Scanner(System.in)) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int result = 0;
            if (a > b) {
                result += a + (a - 1);
            } else if (b > a) {
                result += b + (b - 1);
            } else {
                result += a + b;
            }
            System.out.println(result);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(final String[] args) {

        try (final Scanner sc = new Scanner(System.in)) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int result = 0;
            if (a > b) {
                result += a + (a - 1);
            } else if (b > a) {
                result += b + (b - 1);
            } else {
                result += a + b;
            }
            System.out.println(result);
        }
    }
} Main public static void main(final String[] args) {

        try (final Scanner sc = new Scanner(System.in)) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int result = 0;
            if (a > b) {
                result += a + (a - 1);
            } else if (b > a) {
                result += b + (b - 1);
            } else {
                result += a + b;
            }
            System.out.println(result);
        }
    } main {

        try (final Scanner sc = new Scanner(System.in)) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int result = 0;
            if (a > b) {
                result += a + (a - 1);
            } else if (b > a) {
                result += b + (b - 1);
            } else {
                result += a + b;
            }
            System.out.println(result);
        }
    } try (final Scanner sc = new Scanner(System.in)) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int result = 0;
            if (a > b) {
                result += a + (a - 1);
            } else if (b > a) {
                result += b + (b - 1);
            } else {
                result += a + b;
            }
            System.out.println(result);
        } {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int result = 0;
            if (a > b) {
                result += a + (a - 1);
            } else if (b > a) {
                result += b + (b - 1);
            } else {
                result += a + b;
            }
            System.out.println(result);
        } final Scanner sc = new Scanner(System.in) final Scanner sc = new Scanner(System.in) 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 result = 0; result 0 if (a > b) {
                result += a + (a - 1);
            } else if (b > a) {
                result += b + (b - 1);
            } else {
                result += a + b;
            } a > b a b {
                result += a + (a - 1);
            } result += a + (a - 1) result a + (a - 1) a (a - 1) a 1 if (b > a) {
                result += b + (b - 1);
            } else {
                result += a + b;
            } b > a b a {
                result += b + (b - 1);
            } result += b + (b - 1) result b + (b - 1) b (b - 1) b 1 {
                result += a + b;
            } result += a + b result a + b a b System.out.println(result) System.out.println System.out System System.out result final String[] args args public class Main {

    public static void main(final String[] args) {

        try (final Scanner sc = new Scanner(System.in)) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int result = 0;
            if (a > b) {
                result += a + (a - 1);
            } else if (b > a) {
                result += b + (b - 1);
            } else {
                result += a + b;
            }
            System.out.println(result);
        }
    }
} public class Main {

    public static void main(final String[] args) {

        try (final Scanner sc = new Scanner(System.in)) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int result = 0;
            if (a > b) {
                result += a + (a - 1);
            } else if (b > a) {
                result += b + (b - 1);
            } else {
                result += a + b;
            }
            System.out.println(result);
        }
    }
} Main


import java.util.Scanner;

public class Main {

    public static void main(final String[] args) {

        try (final Scanner sc = new Scanner(System.in)) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int result = 0;
            if (a > b) {
                result += a + (a - 1);
            } else if (b > a) {
                result += b + (b - 1);
            } else {
                result += a + b;
            }
            System.out.println(result);
        }
    }
}
