#include using namespace std; int main(){ int A,B; cin >> A >> B; cout << (A==B?2*A-1:2*min(A,B)) << endl; return 0; }