M,F = map(int,input().split()) M = M+1 alone = abs(F-M) ans1 = "" if F < M: ans1 = "NO" else: ans1 = "YES"