import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String[] abt = sc.nextLine().split(" ");
        int A = Integer.parseInt(abt[0]);
        int B = Integer.parseInt(abt[1]);

        int max = Math.max(A, B) * 2;
        if (A == B) {
            System.out.println(max);
        } else {
            System.out.println(max - 1);
        }
    }

} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String[] abt = sc.nextLine().split(" ");
        int A = Integer.parseInt(abt[0]);
        int B = Integer.parseInt(abt[1]);

        int max = Math.max(A, B) * 2;
        if (A == B) {
            System.out.println(max);
        } else {
            System.out.println(max - 1);
        }
    }

} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String[] abt = sc.nextLine().split(" ");
        int A = Integer.parseInt(abt[0]);
        int B = Integer.parseInt(abt[1]);

        int max = Math.max(A, B) * 2;
        if (A == B) {
            System.out.println(max);
        } else {
            System.out.println(max - 1);
        }
    } main {

        Scanner sc = new Scanner(System.in);
        String[] abt = sc.nextLine().split(" ");
        int A = Integer.parseInt(abt[0]);
        int B = Integer.parseInt(abt[1]);

        int max = Math.max(A, B) * 2;
        if (A == B) {
            System.out.println(max);
        } else {
            System.out.println(max - 1);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] abt = sc.nextLine().split(" "); abt sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int A = Integer.parseInt(abt[0]); A Integer.parseInt(abt[0]) Integer.parseInt Integer abt[0] abt 0 int B = Integer.parseInt(abt[1]); B Integer.parseInt(abt[1]) Integer.parseInt Integer abt[1] abt 1 int max = Math.max(A, B) * 2; max Math.max(A, B) * 2 Math.max(A, B) Math.max Math A B 2 if (A == B) {
            System.out.println(max);
        } else {
            System.out.println(max - 1);
        } A == B A B {
            System.out.println(max);
        } System.out.println(max) System.out.println System.out System System.out max {
            System.out.println(max - 1);
        } System.out.println(max - 1) System.out.println System.out System System.out max - 1 max 1 String[] args args public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String[] abt = sc.nextLine().split(" ");
        int A = Integer.parseInt(abt[0]);
        int B = Integer.parseInt(abt[1]);

        int max = Math.max(A, B) * 2;
        if (A == B) {
            System.out.println(max);
        } else {
            System.out.println(max - 1);
        }
    }

} public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String[] abt = sc.nextLine().split(" ");
        int A = Integer.parseInt(abt[0]);
        int B = Integer.parseInt(abt[1]);

        int max = Math.max(A, B) * 2;
        if (A == B) {
            System.out.println(max);
        } else {
            System.out.println(max - 1);
        }
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String[] abt = sc.nextLine().split(" ");
        int A = Integer.parseInt(abt[0]);
        int B = Integer.parseInt(abt[1]);

        int max = Math.max(A, B) * 2;
        if (A == B) {
            System.out.println(max);
        } else {
            System.out.println(max - 1);
        }
    }

}
