L = list(map(int, input().split())) L.sort() ans = sum(L[1:5]) / 4 print(f"{ans:.2f}")