X, Y = map(int, input().split())
mi = min(X, Y)
ma = max(X, Y)
if mi + 3 > ma:
    print('Yes')
else:
    print('No')

ba08cceb6333eeb5d57f108685fc5ba55614d8c9
<mask token>

<mask token>
if mi + 3 > ma:
    print('Yes')
else:
    print('No')

X, Y = map(int, input().split())
mi = min(X, Y)
ma = max(X, Y)
if mi + 3 > ma:
    print('Yes')
else:
    print('No')
