from statistics import mean s = list(map(int, input().split())) s.sort() ans = mean(s[1:-1]) ans = "{:.2f}".format(ans) print(ans)