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