#include <bits/stdc++.h> using namespace std; #define modulo 1000000007 #define mod(mod_x) ((((long long)mod_x+modulo))%modulo) #define Inf 1000000000 int main(){ int A,B; cin>>A>>B; if(A>B)swap(A,B); if(A==B){ cout<<A+B-1<<endl; } else{ cout<<A + A<<endl; } return 0; }