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