#include<bits/stdc++.h> 

using namespace std;

int main()
{
    int a,b,c,d;
    string A,B;
    cin >> a >> b;
    c = max(a,b);
    d = min(a,b);
    int e = c;
    c--;
    c = max(c,d);
    e += c;
    
    cout <<e<<endl;

    return 0;
}
#include <bits/stdc++.h>
using namespace std;

int main() {
  
  int A, B;
  cin >> A >> B;
  
  if (A == B) {
    cout << 2 * A << endl;
  }
  else {
    cout << 2 * max(A,B) -1 << endl;
  }

return 0;
}