a, b = map(int, input().split()) x = a + 1 - b print(['YES', 'NO'][x > 0]) print(abs(x))