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