puts "%0.2f"%((a=gets.split).map(&:to_f).sort[1..-2].inject(:+)/(a.length-2))