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