S = list(map(int, input().split())) S = sorted(S) q = int(sum(S[1:-1]) * 100 / 4) / 100 print("{0:.2f}".format(q))