#include using namespace std; int main(){ int s,c; cin >> s >> c; if(s==c){ cout << 2*s - 1 << endl; }else{ cout << 2*min(s,c) << endl; } }