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