import java.io.*;

class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int A,B;
        String[] sb = str.split(" ");
        A = Integer.parseInt(sb[0]);
        B = Integer.parseInt(sb[1]);
        int ans;
        if (A > B){
            ans = 2 * A - 1;
        } else if (A < B) {
            ans = 2 * B - 1;
        } else {
            ans = 2 * A;
        }
        System.out.println(ans);
    }
} import java.io.*; io.* java class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int A,B;
        String[] sb = str.split(" ");
        A = Integer.parseInt(sb[0]);
        B = Integer.parseInt(sb[1]);
        int ans;
        if (A > B){
            ans = 2 * A - 1;
        } else if (A < B) {
            ans = 2 * B - 1;
        } else {
            ans = 2 * A;
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int A,B;
        String[] sb = str.split(" ");
        A = Integer.parseInt(sb[0]);
        B = Integer.parseInt(sb[1]);
        int ans;
        if (A > B){
            ans = 2 * A - 1;
        } else if (A < B) {
            ans = 2 * B - 1;
        } else {
            ans = 2 * A;
        }
        System.out.println(ans);
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int A,B;
        String[] sb = str.split(" ");
        A = Integer.parseInt(sb[0]);
        B = Integer.parseInt(sb[1]);
        int ans;
        if (A > B){
            ans = 2 * A - 1;
        } else if (A < B) {
            ans = 2 * B - 1;
        } else {
            ans = 2 * A;
        }
        System.out.println(ans);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br int A A B; B String[] sb = str.split(" "); sb str.split(" ") str.split str " " A = Integer.parseInt(sb[0]) A Integer.parseInt(sb[0]) Integer.parseInt Integer sb[0] sb 0 B = Integer.parseInt(sb[1]) B Integer.parseInt(sb[1]) Integer.parseInt Integer sb[1] sb 1 int ans; ans if (A > B){
            ans = 2 * A - 1;
        } else if (A < B) {
            ans = 2 * B - 1;
        } else {
            ans = 2 * A;
        } A > B A B {
            ans = 2 * A - 1;
        } ans = 2 * A - 1 ans 2 * A - 1 2 * A 2 A 1 if (A < B) {
            ans = 2 * B - 1;
        } else {
            ans = 2 * A;
        } A < B A B {
            ans = 2 * B - 1;
        } ans = 2 * B - 1 ans 2 * B - 1 2 * B 2 B 1 {
            ans = 2 * A;
        } ans = 2 * A ans 2 * A 2 A System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.io.*;

class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int A,B;
        String[] sb = str.split(" ");
        A = Integer.parseInt(sb[0]);
        B = Integer.parseInt(sb[1]);
        int ans;
        if (A > B){
            ans = 2 * A - 1;
        } else if (A < B) {
            ans = 2 * B - 1;
        } else {
            ans = 2 * A;
        }
        System.out.println(ans);
    }
}