#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
ll GetDigit(ll num){ return log10(num)+1; } //numの桁数を求める

int main()
{
    int a,b;
    cin >> a >> b;
    if(a == b) cout << a + b << endl;
    else if(a > b) cout << a*2-1 << endl;
    else cout <<b*2-1 << endl;
    return 0;
}
#include<iostream>
using namespace std;
int main ()
{
    int a,b;
    int m,n,j,k;
    cin>>a>>b;
    m=a+(a-1);
    n=b+(b-1);
    k=a+b;
    if( m>n && m>k)
        cout<<m<<endl;
    else if (n>m &&n>k)
        cout<<n<<endl;
    else
        cout<<k<<endl;
    return 0;
}




