people = list(map(int, input().split())) result = people[0] - people[1] + 1 if result <= 0: print("YES") else: print("NO") print(abs(result))