def main(): scores = [int(i) for i in input().split()] max_num = max(scores) min_num = min(scores) scores.remove(max_num) scores.remove(min_num) print(sum(scores)/len(scores)) if __name__ == '__main__': main()