#include #define rep(i,n) for (int i = 0; i < (n); i ++) using namespace std; typedef long long ll; typedef pair PL; typedef pair P; const int INF = 1e9; const ll MOD = 1e9 + 7; int main() { int A,B; cin >> A >> B; if (A < B) swap(A,B); if (A > B){ cout << 2*B << endl; } else{ cout << 2*A - 1 << endl; } }