p 10-gets.split.map(&:to_i).each_with_index.count{|a,b|a-b>1}