import strutils, sequtils, algorithm, stats, math var S = stdin.readLine.split.map parseInt S.sort(cmp) S.delete(0) S.delete(S.high) echo S.mean.round(3)