S = list(map(int, input().split())) del S[S.index(min(S))], S[S.index(max(S))] print('{:.2f}'.format(sum(S) / len(S)))