A, B = map(int, input().split()) print(max(A, B) * 2 - 1)