#include using namespace std; void solve() { int a, b, c; cin >> a >> b; c = (min(a, b) * 2); cout << ((a == b) ? c - 1 : c) << endl; } int main() { cin.tie(0); ios::sync_with_stdio(false); solve(); getchar(); }