m, f = gets.split(' ').map(&:to_i) m = m + 1 # Yasuo rest = f - m if rest >= 0 puts 'YES' else puts 'NO' end puts rest.abs