A,B = map(int,input().split()) if A >= B: print('No') else: print('Yes') ans = abs(A + 1 - B) print(ans)