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