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