A,B = map(int,input().split()) print(2*min(A,B) if A != B else 2*A-1)