A, B = map(int, input().split()) if B - (A+1) >= 0: print("YES") else: print(A + 1 - B)