x = gets.chomp.split(' ').map{|i| i.to_i(10)}.sort x.pop ; x.shift score = x.reduce {|sum, n| sum + n }.to_f score /= 4.0 puts sprintf("%.2f", score)