#include using namespace std; typedef long long llint; typedef long double ld; #define inf 1e18 #define mod 1000000007 priority_queue,greater > que; priority_queue Que; template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } void solve(){ int a,b; cin >> a >> b; int ans; if(a==b){ ans=2*a-1; } else{ int x=min(a,b); ans=2*x; } cout << ans << endl; } int main(){ solve(); return 0; }