let input = require('fs').readFileSync('/dev/stdin', 'utf8'); const S = input.split(/\s/).map(v => Number(v)); S.splice(S.indexOf(Math.max(...S))); S.splice(S.indexOf(Math.min(...S)), 1); const ans = S.reduce((a, b) => a + b) / S.length; console.log(ans.toFixed(2));