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