import strutils, sequtils, algorithm, stats var S = stdin.readLine.split.map parseInt S.sort(cmp) echo S[1 .. ^2].mean.formatFloat(ffDecimal, 2)