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