m,f = map(int,input().split()) print(["NO","YES"][f-m>= 1])