import java.io.*;
import java.util.*;
import static java.lang.System.in;

public class Main {
    static Scanner sc = new Scanner(System.in);
    static PrintWriter out = new PrintWriter(System.out);
    public static void main(String[] args){
        int a = sc.nextInt(), b = sc.nextInt();
        int ans = Math.max(2*a-1,2*b-1);
        ans = Math.max(ans,a+b);
        System.out.println(ans);
    }
} import java.io.*; io.* java import java.util.*; util.* java import static java.lang.System.in; import static java.lang.System.in; import static java.lang.System.in; public class Main {
    static Scanner sc = new Scanner(System.in);
    static PrintWriter out = new PrintWriter(System.out);
    public static void main(String[] args){
        int a = sc.nextInt(), b = sc.nextInt();
        int ans = Math.max(2*a-1,2*b-1);
        ans = Math.max(ans,a+b);
        System.out.println(ans);
    }
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) public static void main(String[] args){
        int a = sc.nextInt(), b = sc.nextInt();
        int ans = Math.max(2*a-1,2*b-1);
        ans = Math.max(ans,a+b);
        System.out.println(ans);
    } main {
        int a = sc.nextInt(), b = sc.nextInt();
        int ans = Math.max(2*a-1,2*b-1);
        ans = Math.max(ans,a+b);
        System.out.println(ans);
    } int a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int ans = Math.max(2*a-1,2*b-1); ans Math.max(2*a-1,2*b-1) Math.max Math 2*a-1 2*a 2 a 1 2*b-1 2*b 2 b 1 ans = Math.max(ans,a+b) ans Math.max(ans,a+b) Math.max Math ans a+b a b System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    static Scanner sc = new Scanner(System.in);
    static PrintWriter out = new PrintWriter(System.out);
    public static void main(String[] args){
        int a = sc.nextInt(), b = sc.nextInt();
        int ans = Math.max(2*a-1,2*b-1);
        ans = Math.max(ans,a+b);
        System.out.println(ans);
    }
} public class Main {
    static Scanner sc = new Scanner(System.in);
    static PrintWriter out = new PrintWriter(System.out);
    public static void main(String[] args){
        int a = sc.nextInt(), b = sc.nextInt();
        int ans = Math.max(2*a-1,2*b-1);
        ans = Math.max(ans,a+b);
        System.out.println(ans);
    }
} Main
import java.io.*;
import java.util.*;
import static java.lang.System.in;

public class Main {
    static Scanner sc = new Scanner(System.in);
    static PrintWriter out = new PrintWriter(System.out);
    public static void main(String[] args){
        int a = sc.nextInt(), b = sc.nextInt();
        int ans = Math.max(2*a-1,2*b-1);
        ans = Math.max(ans,a+b);
        System.out.println(ans);
    }
}