S = [int(i) for i in input().split()] print("{0:.2f}".format((sum(S) - max(S) - min(S)) / 4))