#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, ans;
  cin >> a >> b;
  if (a > b)
    ans = a + (a - 1);
  else if (a < b)
    ans = b + (b - 1);
  else
    ans = a + b;
  cout << ans << endl;
}
