#include using namespace std; typedef long long ll; ll GCD(ll x,ll y){ if(y == 0) return x; else return GCD(y,x%y); } const int MOD = 1000000007; int main() { int a,b; cin >> a >> b; if(a==b){ cout << a*2-1; }else{ cout << min(a,b)*2; } }