input = gets a, b = input.split(" ").map(&:to_i) if b > a puts "YES" elsif a >= b puts "NO" end puts (a - b).abs