import java.util.*;
import java.io.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());

        int coin = 0;
        for (int i = 0; i < 2; i++) {
            if (A > B) {
                coin += A;
                A--;
            } else {
                coin += B;
                B--;
            }
        }
        out.printf("%d\n", coin);
        out.flush();
    }
} import java.util.*; util.* java import java.io.*; io.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());

        int coin = 0;
        for (int i = 0; i < 2; i++) {
            if (A > B) {
                coin += A;
                A--;
            } else {
                coin += B;
                B--;
            }
        }
        out.printf("%d\n", coin);
        out.flush();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());

        int coin = 0;
        for (int i = 0; i < 2; i++) {
            if (A > B) {
                coin += A;
                A--;
            } else {
                coin += B;
                B--;
            }
        }
        out.printf("%d\n", coin);
        out.flush();
    } main {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());

        int coin = 0;
        for (int i = 0; i < 2; i++) {
            if (A > B) {
                coin += A;
                A--;
            } else {
                coin += B;
                B--;
            }
        }
        out.printf("%d\n", coin);
        out.flush();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) 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 int coin = 0; coin 0 for (int i = 0; i < 2; i++) {
            if (A > B) {
                coin += A;
                A--;
            } else {
                coin += B;
                B--;
            }
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
            if (A > B) {
                coin += A;
                A--;
            } else {
                coin += B;
                B--;
            }
        } {
            if (A > B) {
                coin += A;
                A--;
            } else {
                coin += B;
                B--;
            }
        } if (A > B) {
                coin += A;
                A--;
            } else {
                coin += B;
                B--;
            } A > B A B {
                coin += A;
                A--;
            } coin += A coin A A-- A {
                coin += B;
                B--;
            } coin += B coin B B-- B out.printf("%d\n", coin) out.printf out "%d\n" coin out.flush() out.flush out String[] args args
import java.util.*;
import java.io.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());

        int coin = 0;
        for (int i = 0; i < 2; i++) {
            if (A > B) {
                coin += A;
                A--;
            } else {
                coin += B;
                B--;
            }
        }
        out.printf("%d\n", coin);
        out.flush();
    }
}
