import java.util.Scanner;
public class Main {
    public static void main(String[] args) {        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int botton = sc.nextInt();
        int botton2 = sc.nextInt();
        int sum = 0;
        for (int i = 0; i <= 1; i++) {
            if (botton > botton2) {
                sum += botton;
                botton--;
            } else {
                sum += botton2;
                botton2--;
            }
        }
        System.out.println(sum);
    }

} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int botton = sc.nextInt();
        int botton2 = sc.nextInt();
        int sum = 0;
        for (int i = 0; i <= 1; i++) {
            if (botton > botton2) {
                sum += botton;
                botton--;
            } else {
                sum += botton2;
                botton2--;
            }
        }
        System.out.println(sum);
    }

} Main public static void main(String[] args) {        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int botton = sc.nextInt();
        int botton2 = sc.nextInt();
        int sum = 0;
        for (int i = 0; i <= 1; i++) {
            if (botton > botton2) {
                sum += botton;
                botton--;
            } else {
                sum += botton2;
                botton2--;
            }
        }
        System.out.println(sum);
    } main {        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int botton = sc.nextInt();
        int botton2 = sc.nextInt();
        int sum = 0;
        for (int i = 0; i <= 1; i++) {
            if (botton > botton2) {
                sum += botton;
                botton--;
            } else {
                sum += botton2;
                botton2--;
            }
        }
        System.out.println(sum);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int botton = sc.nextInt(); botton sc.nextInt() sc.nextInt sc int botton2 = sc.nextInt(); botton2 sc.nextInt() sc.nextInt sc int sum = 0; sum 0 for (int i = 0; i <= 1; i++) {
            if (botton > botton2) {
                sum += botton;
                botton--;
            } else {
                sum += botton2;
                botton2--;
            }
        } int i = 0; int i = 0; i 0 i <= 1 i 1 i++ i++ i {
            if (botton > botton2) {
                sum += botton;
                botton--;
            } else {
                sum += botton2;
                botton2--;
            }
        } {
            if (botton > botton2) {
                sum += botton;
                botton--;
            } else {
                sum += botton2;
                botton2--;
            }
        } if (botton > botton2) {
                sum += botton;
                botton--;
            } else {
                sum += botton2;
                botton2--;
            } botton > botton2 botton botton2 {
                sum += botton;
                botton--;
            } sum += botton sum botton botton-- botton {
                sum += botton2;
                botton2--;
            } sum += botton2 sum botton2 botton2-- botton2 System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main {
    public static void main(String[] args) {        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int botton = sc.nextInt();
        int botton2 = sc.nextInt();
        int sum = 0;
        for (int i = 0; i <= 1; i++) {
            if (botton > botton2) {
                sum += botton;
                botton--;
            } else {
                sum += botton2;
                botton2--;
            }
        }
        System.out.println(sum);
    }

} public class Main {
    public static void main(String[] args) {        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int botton = sc.nextInt();
        int botton2 = sc.nextInt();
        int sum = 0;
        for (int i = 0; i <= 1; i++) {
            if (botton > botton2) {
                sum += botton;
                botton--;
            } else {
                sum += botton2;
                botton2--;
            }
        }
        System.out.println(sum);
    }

} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int botton = sc.nextInt();
        int botton2 = sc.nextInt();
        int sum = 0;
        for (int i = 0; i <= 1; i++) {
            if (botton > botton2) {
                sum += botton;
                botton--;
            } else {
                sum += botton2;
                botton2--;
            }
        }
        System.out.println(sum);
    }

}
