#include #include #include #include #include #define rep(i,n) for(i=0; i> a #define out(a,b) cout << a << b using namespace std; using lint = long long; int main(void){ int i, j; int n, m; in(n); in(m); if(n==m) out(n+m,endl); else{ int x, y; x=min(n,m); y=max(n,m); out(n+m+y-(x+1),endl); } return 0; }