import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = Math.max(a, b);
        int d = Math.min(a, b);
        int out = 0;
        out += c;
        out += Math.max(c - 1, d);
        System.out.println(out);
        scan.close();
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = Math.max(a, b);
        int d = Math.min(a, b);
        int out = 0;
        out += c;
        out += Math.max(c - 1, d);
        System.out.println(out);
        scan.close();
    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = Math.max(a, b);
        int d = Math.min(a, b);
        int out = 0;
        out += c;
        out += Math.max(c - 1, d);
        System.out.println(out);
        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = Math.max(a, b);
        int d = Math.min(a, b);
        int out = 0;
        out += c;
        out += Math.max(c - 1, d);
        System.out.println(out);
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = Math.max(a, b); c Math.max(a, b) Math.max Math a b int d = Math.min(a, b); d Math.min(a, b) Math.min Math a b int out = 0; out 0 out += c out c out += Math.max(c - 1, d) out Math.max(c - 1, d) Math.max Math c - 1 c 1 d System.out.println(out) System.out.println System.out System System.out out scan.close() scan.close scan String[] args args public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = Math.max(a, b);
        int d = Math.min(a, b);
        int out = 0;
        out += c;
        out += Math.max(c - 1, d);
        System.out.println(out);
        scan.close();
    }
} public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = Math.max(a, b);
        int d = Math.min(a, b);
        int out = 0;
        out += c;
        out += Math.max(c - 1, d);
        System.out.println(out);
        scan.close();
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = Math.max(a, b);
        int d = Math.min(a, b);
        int out = 0;
        out += c;
        out += Math.max(c - 1, d);
        System.out.println(out);
        scan.close();
    }
}