a,b = map(int,input().split()) a = a + 1 if a <= b:print("Yes") else:print("No") print(abs(a-b))