import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int re = 0; //結果用
        for(int i = 0; i < 2; i++){
            while(true){
                if(a > b){
                    re = re + a;
                    a--;
                    break;
                }
                if(a < b){
                    re = re + b;
                    b--;
                    break;
                }
                if(a == b){
                    re = re + a;
                    a--;
                    break;
                }
            }
        }
        System.out.println(re);
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int re = 0; //結果用
        for(int i = 0; i < 2; i++){
            while(true){
                if(a > b){
                    re = re + a;
                    a--;
                    break;
                }
                if(a < b){
                    re = re + b;
                    b--;
                    break;
                }
                if(a == b){
                    re = re + a;
                    a--;
                    break;
                }
            }
        }
        System.out.println(re);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int re = 0; //結果用
        for(int i = 0; i < 2; i++){
            while(true){
                if(a > b){
                    re = re + a;
                    a--;
                    break;
                }
                if(a < b){
                    re = re + b;
                    b--;
                    break;
                }
                if(a == b){
                    re = re + a;
                    a--;
                    break;
                }
            }
        }
        System.out.println(re);
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int re = 0; //結果用
        for(int i = 0; i < 2; i++){
            while(true){
                if(a > b){
                    re = re + a;
                    a--;
                    break;
                }
                if(a < b){
                    re = re + b;
                    b--;
                    break;
                }
                if(a == b){
                    re = re + a;
                    a--;
                    break;
                }
            }
        }
        System.out.println(re);
    } 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 re = 0; re 0 for(int i = 0; i < 2; i++){
            while(true){
                if(a > b){
                    re = re + a;
                    a--;
                    break;
                }
                if(a < b){
                    re = re + b;
                    b--;
                    break;
                }
                if(a == b){
                    re = re + a;
                    a--;
                    break;
                }
            }
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
            while(true){
                if(a > b){
                    re = re + a;
                    a--;
                    break;
                }
                if(a < b){
                    re = re + b;
                    b--;
                    break;
                }
                if(a == b){
                    re = re + a;
                    a--;
                    break;
                }
            }
        } {
            while(true){
                if(a > b){
                    re = re + a;
                    a--;
                    break;
                }
                if(a < b){
                    re = re + b;
                    b--;
                    break;
                }
                if(a == b){
                    re = re + a;
                    a--;
                    break;
                }
            }
        } while(true){
                if(a > b){
                    re = re + a;
                    a--;
                    break;
                }
                if(a < b){
                    re = re + b;
                    b--;
                    break;
                }
                if(a == b){
                    re = re + a;
                    a--;
                    break;
                }
            } true {
                if(a > b){
                    re = re + a;
                    a--;
                    break;
                }
                if(a < b){
                    re = re + b;
                    b--;
                    break;
                }
                if(a == b){
                    re = re + a;
                    a--;
                    break;
                }
            } if(a > b){
                    re = re + a;
                    a--;
                    break;
                } a > b a b {
                    re = re + a;
                    a--;
                    break;
                } re = re + a re re + a re a a-- a break; if(a < b){
                    re = re + b;
                    b--;
                    break;
                } a < b a b {
                    re = re + b;
                    b--;
                    break;
                } re = re + b re re + b re b b-- b break; if(a == b){
                    re = re + a;
                    a--;
                    break;
                } a == b a b {
                    re = re + a;
                    a--;
                    break;
                } re = re + a re re + a re a a-- a break; System.out.println(re) System.out.println System.out System System.out re String[] args args
import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int re = 0; //結果用
        for(int i = 0; i < 2; i++){
            while(true){
                if(a > b){
                    re = re + a;
                    a--;
                    break;
                }
                if(a < b){
                    re = re + b;
                    b--;
                    break;
                }
                if(a == b){
                    re = re + a;
                    a--;
                    break;
                }
            }
        }
        System.out.println(re);
    }
}