import strutils, sequtils, algorithm, stats var N, A = stdin.readLine.split.map(parseInt) A.sort(cmp) while A.len >= 3: A.delete(0) A.delete(A.high) echo A.mean