A,B=map(int,input().split()) print("YNEOS"[A>=B::2]) O=A-B+1 if A