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