ary = gets.chomp.split(" ").map {|i| i.to_i } n = ary[1] - ary[0] if n >= 1 puts "YES" puts "#{n - 1}" else puts "NO" puts "#{(n * -1) + 1}" end