scores = [int(x) for x in input().split(' ')] max_score = max(scores) min_score = min(scores) scores.remove(max_score) scores.remove(min_score) score = sum(scores)/len(scores) print(f'{score:.2f}')