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