M,F = map(int,input().split()) M = M+1 alone = abs(F-M) ans1 = "" if F < M: ans1 = "No" else: ans1 = "Yes" print(ans1) print(alone) print()