import java.util.*;

public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int result = 0;
        if (a>b) {
            result += a;
            a--;
        }
        else {
            result += b;
            b--;
        }
      
        if (a>b) {
            result += a;
            a--;
        }
        else {
            result += b;
            b--;
        }
        System.out.println(result);
        sc.close();
    }
} import java.util.*; util.* java public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int result = 0;
        if (a>b) {
            result += a;
            a--;
        }
        else {
            result += b;
            b--;
        }
      
        if (a>b) {
            result += a;
            a--;
        }
        else {
            result += b;
            b--;
        }
        System.out.println(result);
        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int result = 0;
        if (a>b) {
            result += a;
            a--;
        }
        else {
            result += b;
            b--;
        }
      
        if (a>b) {
            result += a;
            a--;
        }
        else {
            result += b;
            b--;
        }
        System.out.println(result);
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int result = 0;
        if (a>b) {
            result += a;
            a--;
        }
        else {
            result += b;
            b--;
        }
      
        if (a>b) {
            result += a;
            a--;
        }
        else {
            result += b;
            b--;
        }
        System.out.println(result);
        sc.close();
    } 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 result = 0; result 0 if (a>b) {
            result += a;
            a--;
        }
        else {
            result += b;
            b--;
        } a>b a b {
            result += a;
            a--;
        } result += a result a a-- a {
            result += b;
            b--;
        } result += b result b b-- b if (a>b) {
            result += a;
            a--;
        }
        else {
            result += b;
            b--;
        } a>b a b {
            result += a;
            a--;
        } result += a result a a-- a {
            result += b;
            b--;
        } result += b result b b-- b System.out.println(result) System.out.println System.out System System.out result sc.close() sc.close sc String[] args args public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int result = 0;
        if (a>b) {
            result += a;
            a--;
        }
        else {
            result += b;
            b--;
        }
      
        if (a>b) {
            result += a;
            a--;
        }
        else {
            result += b;
            b--;
        }
        System.out.println(result);
        sc.close();
    }
} public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int result = 0;
        if (a>b) {
            result += a;
            a--;
        }
        else {
            result += b;
            b--;
        }
      
        if (a>b) {
            result += a;
            a--;
        }
        else {
            result += b;
            b--;
        }
        System.out.println(result);
        sc.close();
    }
} Main
import java.util.*;

public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int result = 0;
        if (a>b) {
            result += a;
            a--;
        }
        else {
            result += b;
            b--;
        }
      
        if (a>b) {
            result += a;
            a--;
        }
        else {
            result += b;
            b--;
        }
        System.out.println(result);
        sc.close();
    }
}