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