import sys input = sys.stdin.readline from collections import * A, B = map(int, input().split()) if A==B: print(A+B) else: print(A+B+max(A, B)-min(A, B)-1)