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