import java.util.*;

public class Main {

    long INF = Long.MAX_VALUE;
    public static void main(String[] args) {
        new Main().solve();
    }

    void solve() {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = Math.max(2*A-1, Math.max(2*B-1,A+B));
        System.out.println(C);
    }
} import java.util.*; util.* java public class Main {

    long INF = Long.MAX_VALUE;
    public static void main(String[] args) {
        new Main().solve();
    }

    void solve() {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = Math.max(2*A-1, Math.max(2*B-1,A+B));
        System.out.println(C);
    }
} Main long INF = Long.MAX_VALUE; INF Long.MAX_VALUE Long Long.MAX_VALUE public static void main(String[] args) {
        new Main().solve();
    } main {
        new Main().solve();
    } new Main().solve() new Main().solve new Main() String[] args args void solve() {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = Math.max(2*A-1, Math.max(2*B-1,A+B));
        System.out.println(C);
    } solve {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = Math.max(2*A-1, Math.max(2*B-1,A+B));
        System.out.println(C);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int B = sc.nextInt(); B sc.nextInt() sc.nextInt sc int C = Math.max(2*A-1, Math.max(2*B-1,A+B)); C Math.max(2*A-1, Math.max(2*B-1,A+B)) Math.max Math 2*A-1 2*A 2 A 1 Math.max(2*B-1,A+B) Math.max Math 2*B-1 2*B 2 B 1 A+B A B System.out.println(C) System.out.println System.out System System.out C public class Main {

    long INF = Long.MAX_VALUE;
    public static void main(String[] args) {
        new Main().solve();
    }

    void solve() {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = Math.max(2*A-1, Math.max(2*B-1,A+B));
        System.out.println(C);
    }
} public class Main {

    long INF = Long.MAX_VALUE;
    public static void main(String[] args) {
        new Main().solve();
    }

    void solve() {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = Math.max(2*A-1, Math.max(2*B-1,A+B));
        System.out.println(C);
    }
} Main
import java.util.*;

public class Main {

    long INF = Long.MAX_VALUE;
    public static void main(String[] args) {
        new Main().solve();
    }

    void solve() {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = Math.max(2*A-1, Math.max(2*B-1,A+B));
        System.out.println(C);
    }
}