fork download
  1. a, b, c, d, e = float(input()), float(input()), float(input()), float(input()), float(input())
  2. mx = max(a, b, c, d, e)
  3. mn = min(a, b, c, d, e)
  4. pr = 1
  5. if a != mx and a != mn:
  6. pr = a * pr
  7. if b != mx and b != mn:
  8. pr = b * pr
  9. if c != mx and c != mn:
  10. pr = c * pr
  11. if d != mx and d != mn:
  12. pr = d * pr
  13. if e != mx and e != mn:
  14. pr = e * pr
  15. med = round(pr / 3, 2)
  16. print(med)
Success #stdin #stdout 0.02s 7344KB
stdin
1.2
2.3
0.4
4.5
-5.6
stdout
0.37