#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  scanf("%d %d", &a, &b);
  int x[3];
  x[0] = a + a - 1;
  x[1] = b + b - 1;
  x[2] = a + b;
  sort(x, x + 3);
  printf("%d\n", x[3]);
}
