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