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