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