import java.util.Scanner;

public class Main {

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

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

    public static void main(String[] args) {
        Scanner t = new Scanner(System.in);
        int a = t.nextInt();
        int b = t.nextInt();
        int sum = 0; 
        if (a>=b){
            sum+=a;
            a--;
        } else {
            sum+=b;
            b--;
        }
        if (a>=b){
            sum+=a;
            a--;
        } else {
            sum+=b;
            b--;
        }
        System.out.println(sum);
    }   
} Main
import java.util.Scanner;

public class Main {

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