gets;p~-gets.split.map(&:to_i).each_cons(2).find{|a,b|a