S = list(map(int, input().split())) S = sum(S) - max(S) - min(S) print("{:.2f}".format(S / 4))