import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        final Scanner scanner = new Scanner(System.in);
        final String input = scanner.nextLine();
        final String[] coinSize = input.split(" ");
        final int[] coinSizeInt = { Integer.parseInt(coinSize[0]), Integer.parseInt(coinSize[1]) };

        int score = 0;
        for (int i = 0; i < 2; i++) {
            if (coinSizeInt[0] > coinSizeInt[1]) {
                score += coinSizeInt[0];
                coinSizeInt[0]--;
            } else {
                score += coinSizeInt[1];
                coinSizeInt[1]--;
            }
        }

        System.out.println(score);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
        final Scanner scanner = new Scanner(System.in);
        final String input = scanner.nextLine();
        final String[] coinSize = input.split(" ");
        final int[] coinSizeInt = { Integer.parseInt(coinSize[0]), Integer.parseInt(coinSize[1]) };

        int score = 0;
        for (int i = 0; i < 2; i++) {
            if (coinSizeInt[0] > coinSizeInt[1]) {
                score += coinSizeInt[0];
                coinSizeInt[0]--;
            } else {
                score += coinSizeInt[1];
                coinSizeInt[1]--;
            }
        }

        System.out.println(score);
    }
} Main public static void main(String[] args) throws Exception {
        final Scanner scanner = new Scanner(System.in);
        final String input = scanner.nextLine();
        final String[] coinSize = input.split(" ");
        final int[] coinSizeInt = { Integer.parseInt(coinSize[0]), Integer.parseInt(coinSize[1]) };

        int score = 0;
        for (int i = 0; i < 2; i++) {
            if (coinSizeInt[0] > coinSizeInt[1]) {
                score += coinSizeInt[0];
                coinSizeInt[0]--;
            } else {
                score += coinSizeInt[1];
                coinSizeInt[1]--;
            }
        }

        System.out.println(score);
    } main {
        final Scanner scanner = new Scanner(System.in);
        final String input = scanner.nextLine();
        final String[] coinSize = input.split(" ");
        final int[] coinSizeInt = { Integer.parseInt(coinSize[0]), Integer.parseInt(coinSize[1]) };

        int score = 0;
        for (int i = 0; i < 2; i++) {
            if (coinSizeInt[0] > coinSizeInt[1]) {
                score += coinSizeInt[0];
                coinSizeInt[0]--;
            } else {
                score += coinSizeInt[1];
                coinSizeInt[1]--;
            }
        }

        System.out.println(score);
    } final Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) final String input = scanner.nextLine(); input scanner.nextLine() scanner.nextLine scanner final String[] coinSize = input.split(" "); coinSize input.split(" ") input.split input " " final int[] coinSizeInt = { Integer.parseInt(coinSize[0]), Integer.parseInt(coinSize[1]) }; coinSizeInt { Integer.parseInt(coinSize[0]), Integer.parseInt(coinSize[1]) } Integer.parseInt(coinSize[0]) Integer.parseInt Integer coinSize[0] coinSize 0 Integer.parseInt(coinSize[1]) Integer.parseInt Integer coinSize[1] coinSize 1 int score = 0; score 0 for (int i = 0; i < 2; i++) {
            if (coinSizeInt[0] > coinSizeInt[1]) {
                score += coinSizeInt[0];
                coinSizeInt[0]--;
            } else {
                score += coinSizeInt[1];
                coinSizeInt[1]--;
            }
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
            if (coinSizeInt[0] > coinSizeInt[1]) {
                score += coinSizeInt[0];
                coinSizeInt[0]--;
            } else {
                score += coinSizeInt[1];
                coinSizeInt[1]--;
            }
        } {
            if (coinSizeInt[0] > coinSizeInt[1]) {
                score += coinSizeInt[0];
                coinSizeInt[0]--;
            } else {
                score += coinSizeInt[1];
                coinSizeInt[1]--;
            }
        } if (coinSizeInt[0] > coinSizeInt[1]) {
                score += coinSizeInt[0];
                coinSizeInt[0]--;
            } else {
                score += coinSizeInt[1];
                coinSizeInt[1]--;
            } coinSizeInt[0] > coinSizeInt[1] coinSizeInt[0] coinSizeInt 0 coinSizeInt[1] coinSizeInt 1 {
                score += coinSizeInt[0];
                coinSizeInt[0]--;
            } score += coinSizeInt[0] score coinSizeInt[0] coinSizeInt 0 coinSizeInt[0]-- coinSizeInt[0] coinSizeInt 0 {
                score += coinSizeInt[1];
                coinSizeInt[1]--;
            } score += coinSizeInt[1] score coinSizeInt[1] coinSizeInt 1 coinSizeInt[1]-- coinSizeInt[1] coinSizeInt 1 System.out.println(score) System.out.println System.out System System.out score String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        final Scanner scanner = new Scanner(System.in);
        final String input = scanner.nextLine();
        final String[] coinSize = input.split(" ");
        final int[] coinSizeInt = { Integer.parseInt(coinSize[0]), Integer.parseInt(coinSize[1]) };

        int score = 0;
        for (int i = 0; i < 2; i++) {
            if (coinSizeInt[0] > coinSizeInt[1]) {
                score += coinSizeInt[0];
                coinSizeInt[0]--;
            } else {
                score += coinSizeInt[1];
                coinSizeInt[1]--;
            }
        }

        System.out.println(score);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        final Scanner scanner = new Scanner(System.in);
        final String input = scanner.nextLine();
        final String[] coinSize = input.split(" ");
        final int[] coinSizeInt = { Integer.parseInt(coinSize[0]), Integer.parseInt(coinSize[1]) };

        int score = 0;
        for (int i = 0; i < 2; i++) {
            if (coinSizeInt[0] > coinSizeInt[1]) {
                score += coinSizeInt[0];
                coinSizeInt[0]--;
            } else {
                score += coinSizeInt[1];
                coinSizeInt[1]--;
            }
        }

        System.out.println(score);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        final Scanner scanner = new Scanner(System.in);
        final String input = scanner.nextLine();
        final String[] coinSize = input.split(" ");
        final int[] coinSizeInt = { Integer.parseInt(coinSize[0]), Integer.parseInt(coinSize[1]) };

        int score = 0;
        for (int i = 0; i < 2; i++) {
            if (coinSizeInt[0] > coinSizeInt[1]) {
                score += coinSizeInt[0];
                coinSizeInt[0]--;
            } else {
                score += coinSizeInt[1];
                coinSizeInt[1]--;
            }
        }

        System.out.println(score);
    }
}
