from statistics import mean S = [int(i) for i in input().split()] S.sort() S.pop() S.pop(0) mean_score = mean(S) print('{0:.2f}'.format(mean_score))