a,b = gets.split.map(&:to_i) puts a < b ? "YES" : "NO" p a < b ? 0 : a - b + 1