score = [int(x) for x in input().split()] remove = max(score) + min(score) ave = (sum(score) - remove) / 4 print("{:.2f}".format(ave))