a,b=map(int,input().split()) print(min(a,b)*2-(a==b))