n,k =map(int,input().split())
#共有n-1对,如果n-1比k大就满足题意
if n-1>=k:print('YES')
else:print('NO')