#include using namespace std; struct point{double x;double y;}; int i,j,k,count1=0,count2=0; int main(void){ int a,b; cin>>a>>b; if(a==b)cout<<2*min(a,b)-1<