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 count = 0;

        if(a>b){
            count = a;
            a--;
        }else{
            count = b;
            b--;
        }

        if(a>b){
            count += a;
        }else{
            count += b;
        }

        System.out.println(count);
    }
} 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 count = 0;

        if(a>b){
            count = a;
            a--;
        }else{
            count = b;
            b--;
        }

        if(a>b){
            count += a;
        }else{
            count += b;
        }

        System.out.println(count);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();
        int count = 0;

        if(a>b){
            count = a;
            a--;
        }else{
            count = b;
            b--;
        }

        if(a>b){
            count += a;
        }else{
            count += b;
        }

        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();
        int count = 0;

        if(a>b){
            count = a;
            a--;
        }else{
            count = b;
            b--;
        }

        if(a>b){
            count += a;
        }else{
            count += b;
        }

        System.out.println(count);
    } 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 count = 0; count 0 if(a>b){
            count = a;
            a--;
        }else{
            count = b;
            b--;
        } a>b a b {
            count = a;
            a--;
        } count = a count a a-- a {
            count = b;
            b--;
        } count = b count b b-- b if(a>b){
            count += a;
        }else{
            count += b;
        } a>b a b {
            count += a;
        } count += a count a {
            count += b;
        } count += b count b System.out.println(count) System.out.println System.out System System.out count 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 count = 0;

        if(a>b){
            count = a;
            a--;
        }else{
            count = b;
            b--;
        }

        if(a>b){
            count += a;
        }else{
            count += b;
        }

        System.out.println(count);
    }
}