a,b = map(int, input().split()) if a > b: s = b * 2 elif a < b: s = a * 2 else: s = a * 2 - 1 print ("s")