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 max = 0;
        int aa = a + (a - 1);
        int bb = b + (b - 1);
        int ab = a + b;
        
        if (max <= aa) {
            max = aa;
        }
        if (max <= bb) {
            max = bb;
        }
        if (max <= ab) {
            max = ab;
        }
        
        System.out.println(max);
        
    }
} 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 max = 0;
        int aa = a + (a - 1);
        int bb = b + (b - 1);
        int ab = a + b;
        
        if (max <= aa) {
            max = aa;
        }
        if (max <= bb) {
            max = bb;
        }
        if (max <= ab) {
            max = ab;
        }
        
        System.out.println(max);
        
    }
} Main public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        int max = 0;
        int aa = a + (a - 1);
        int bb = b + (b - 1);
        int ab = a + b;
        
        if (max <= aa) {
            max = aa;
        }
        if (max <= bb) {
            max = bb;
        }
        if (max <= ab) {
            max = ab;
        }
        
        System.out.println(max);
        
    } main {
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        int max = 0;
        int aa = a + (a - 1);
        int bb = b + (b - 1);
        int ab = a + b;
        
        if (max <= aa) {
            max = aa;
        }
        if (max <= bb) {
            max = bb;
        }
        if (max <= ab) {
            max = ab;
        }
        
        System.out.println(max);
        
    } 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 max = 0; max 0 int aa = a + (a - 1); aa a + (a - 1) a (a - 1) a 1 int bb = b + (b - 1); bb b + (b - 1) b (b - 1) b 1 int ab = a + b; ab a + b a b if (max <= aa) {
            max = aa;
        } max <= aa max aa {
            max = aa;
        } max = aa max aa if (max <= bb) {
            max = bb;
        } max <= bb max bb {
            max = bb;
        } max = bb max bb if (max <= ab) {
            max = ab;
        } max <= ab max ab {
            max = ab;
        } max = ab max ab System.out.println(max) System.out.println System.out System System.out max 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 max = 0;
        int aa = a + (a - 1);
        int bb = b + (b - 1);
        int ab = a + b;
        
        if (max <= aa) {
            max = aa;
        }
        if (max <= bb) {
            max = bb;
        }
        if (max <= ab) {
            max = ab;
        }
        
        System.out.println(max);
        
    }
}