import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        if (A > B) System.out.println(2*A -1);
        else if (B > A) System.out.println(2*B -1);
        else System.out.println(A +B);
//        return;
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        if (A > B) System.out.println(2*A -1);
        else if (B > A) System.out.println(2*B -1);
        else System.out.println(A +B);
//        return;
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        if (A > B) System.out.println(2*A -1);
        else if (B > A) System.out.println(2*B -1);
        else System.out.println(A +B);
//        return;
    } main {
        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        if (A > B) System.out.println(2*A -1);
        else if (B > A) System.out.println(2*B -1);
        else System.out.println(A +B);
//        return;
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = Integer.parseInt(sc.next()); A Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int B = Integer.parseInt(sc.next()); B Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if (A > B) System.out.println(2*A -1);
        else if (B > A) System.out.println(2*B -1);
        else System.out.println(A +B); A > B A B System.out.println(2*A -1) System.out.println System.out System System.out 2*A -1 2*A 2 A 1 if (B > A) System.out.println(2*B -1);
        else System.out.println(A +B); B > A B A System.out.println(2*B -1) System.out.println System.out System System.out 2*B -1 2*B 2 B 1 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 = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        if (A > B) System.out.println(2*A -1);
        else if (B > A) System.out.println(2*B -1);
        else System.out.println(A +B);
//        return;
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        if (A > B) System.out.println(2*A -1);
        else if (B > A) System.out.println(2*B -1);
        else System.out.println(A +B);
//        return;
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());
        if (A > B) System.out.println(2*A -1);
        else if (B > A) System.out.println(2*B -1);
        else System.out.println(A +B);
//        return;
    }
}