ss = gets.split.map(&:to_f).sort puts ss[1..4].inject(:+) / 4