#include <iostream>
using namespace std;
int main(void){
    int a,b;
    cin>>a>>b;
    if (a<b){
        int tmp =a;
        a=b;b=tmp;
    }
    int ans = a;
    a--;
    if (a<b){
        int tmp =a;
        a=b;b=tmp;
    }
    ans+=a;
    cout<<ans;
}

#include "iostream"
using namespace std;
int main(){
  int a; int b;
  cin>>a>>b;
  if(a==b){
    cout<<2*a<<endl;

  }
  else if(a>b){
    cout<<a+(a-1)<<endl;
  }
  else{
    cout<<b+(b-1)<<endl;
  }
}
