import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int max = Math.max(a, b);
        int min = Math.min(a, b);
        System.out.println(max != min ? 2 * max - 1: 2 * max);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int max = Math.max(a, b);
        int min = Math.min(a, b);
        System.out.println(max != min ? 2 * max - 1: 2 * max);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int max = Math.max(a, b);
        int min = Math.min(a, b);
        System.out.println(max != min ? 2 * max - 1: 2 * max);
    } main {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int max = Math.max(a, b);
        int min = Math.min(a, b);
        System.out.println(max != min ? 2 * max - 1: 2 * max);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner int max = Math.max(a, b); max Math.max(a, b) Math.max Math a b int min = Math.min(a, b); min Math.min(a, b) Math.min Math a b System.out.println(max != min ? 2 * max - 1: 2 * max) System.out.println System.out System System.out max != min ? 2 * max - 1: 2 * max max != min max min 2 * max - 1 2 * max 2 max 1 2 * max 2 max String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int max = Math.max(a, b);
        int min = Math.min(a, b);
        System.out.println(max != min ? 2 * max - 1: 2 * max);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int max = Math.max(a, b);
        int min = Math.min(a, b);
        System.out.println(max != min ? 2 * max - 1: 2 * max);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int max = Math.max(a, b);
        int min = Math.min(a, b);
        System.out.println(max != min ? 2 * max - 1: 2 * max);
    }
}
