x=input ().split () if int(x[0])==int(x[1]): print (2*int(x[0])) else: print((max(int(x[0]),int(x[1]))*2)-1)