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