X, Y = sorted([int(x) for x in input().split()]) if X + 3 > Y : print("Yes") else: print("No")