import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b = sc.nextInt();
        if (a > b) {
            System.out.println(a + (a - 1));
        } else if (b > a) {
            System.out.println(b + (b - 1));
        } else {
            System.out.println(a + b);
        }
    }
} 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(), b = sc.nextInt();
        if (a > b) {
            System.out.println(a + (a - 1));
        } else if (b > a) {
            System.out.println(b + (b - 1));
        } else {
            System.out.println(a + b);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b = sc.nextInt();
        if (a > b) {
            System.out.println(a + (a - 1));
        } else if (b > a) {
            System.out.println(b + (b - 1));
        } else {
            System.out.println(a + b);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b = sc.nextInt();
        if (a > b) {
            System.out.println(a + (a - 1));
        } else if (b > a) {
            System.out.println(b + (b - 1));
        } else {
            System.out.println(a + b);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt(); b sc.nextInt() sc.nextInt sc if (a > b) {
            System.out.println(a + (a - 1));
        } else if (b > a) {
            System.out.println(b + (b - 1));
        } else {
            System.out.println(a + b);
        } a > b a b {
            System.out.println(a + (a - 1));
        } System.out.println(a + (a - 1)) System.out.println System.out System System.out a + (a - 1) a (a - 1) a 1 if (b > a) {
            System.out.println(b + (b - 1));
        } else {
            System.out.println(a + b);
        } b > a b a {
            System.out.println(b + (b - 1));
        } System.out.println(b + (b - 1)) System.out.println System.out System System.out b + (b - 1) b (b - 1) b 1 {
            System.out.println(a + b);
        } System.out.println(a + b) System.out.println System.out System System.out a + b a b String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b = sc.nextInt();
        if (a > b) {
            System.out.println(a + (a - 1));
        } else if (b > a) {
            System.out.println(b + (b - 1));
        } else {
            System.out.println(a + b);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b = sc.nextInt();
        if (a > b) {
            System.out.println(a + (a - 1));
        } else if (b > a) {
            System.out.println(b + (b - 1));
        } else {
            System.out.println(a + b);
        }
    }
} Main
import java.util.Scanner;

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