N, M, X = gets.split.map(&:to_i) O = N - M if X - O >= 3 puts 'YES' else puts 'NO' end