import strutils, sequtils, algorithm, stats
var S = stdin.readLine.split.map parseInt

S.sort(cmp)
S.delete(0)
S.delete(S.high)

echo S.mean.formatFloat(ffDecimal, 2)