#include #include #include #include #include #include #include #include #include #include #include using ld = long double; using ll = long long int; using ul = unsigned long long int; namespace lamlib { /* constant */ constexpr double epsilon = std::numeric_limits::epsilon(); /* math */ template inline T abs(const T &a){ return (a>0) ? a : -a; } ul inline digit(const ul &num){ return static_cast
    (std::log10(num+epsilon))+1; } /* algorithm */ ul gcd(const ul &a,const ul &b) { return (!b) ? a : gcd(b,a%b); } // NOTE: a > b /* string */ inline ul same_char_count(const std::string s,const char &ch){ return std::count(std::cbegin(s),std::cend(s),ch); } } // std::cout << std::fixed << std::setprecision(15) << std::endl; int main(int argc,char *argv[]) { int a,b; std::cin >> a >> b; if(a == b) std::cout << a*2-1 << std::endl; else { int min = (a>b)?b:a; std::cout << min*2 << std::endl; } return 0; }