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