import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        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--;
            }
        }
        
        System.out.println(coin);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        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--;
            }
        }
        
        System.out.println(coin);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        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--;
            }
        }
        
        System.out.println(coin);
    } main {
        Scanner sc = new Scanner(System.in);
        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--;
            }
        }
        
        System.out.println(coin);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) 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 System.out.println(coin) System.out.println System.out System System.out coin String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        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--;
            }
        }
        
        System.out.println(coin);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        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--;
            }
        }
        
        System.out.println(coin);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        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--;
            }
        }
        
        System.out.println(coin);
    }
}
